Skip to content
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

Editorial: Rename aliases in Canonicalize for better readability #3412

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gibson042
Copy link
Contributor

No description provided.

1. Return _cu_.
1. Let _mapped_ be toUppercase(« _cp_ »), according to the Unicode Default Case Conversion algorithm.
1. If the length of _mapped_ ≠ 1 or the length of CodePointsToString(_mapped_) ≠ 1, return _ch_.
1. Let _mappedCP_ be the single code point element of _mapped_.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This step could be followed by an assertion, but I have a slight preference for omitting it.

Suggested change
1. Let _mappedCP_ be the single code point element of _mapped_.
1. Let _mappedCP_ be the single code point element of _mapped_.
1. Assert: _mappedCP_ ≤ 0xFFFF.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same, I don't think it's helpful.

@gibson042 gibson042 force-pushed the 2024-09-regexp-canonicalize-alias-names branch from 73d671d to 21057df Compare September 4, 2024 17:57
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