Skip to content

Don't count characters above the SMP as surrogates #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 15, 2020

Conversation

masad-frost
Copy link
Contributor

The supplementary plane lies between 0xd800 and 0xdfff, anything outside that range should not be counted as a pair.

The supplementary plane lies between 0xd800 and 0xdfff, anything outside that range should not be counted as a pair.
@antoinelyset
Copy link

Indeed! I think it may be useful to merge this PR :)

@josephg
Copy link
Owner

josephg commented May 15, 2020

Oh sorry for leaving you in the lurch - I must have missed the notification for this!

@josephg josephg merged commit f803db5 into josephg:master May 15, 2020
@josephg
Copy link
Owner

josephg commented May 15, 2020

Nice catch - thanks for the fix! It’d be good to add a test case too if you want to suggest one to make sure we don’t get regressions.

josephg added a commit that referenced this pull request May 16, 2020
josephg added a commit to ottypes/text-unicode that referenced this pull request May 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants