This repository has been archived by the owner on Oct 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
Support Unicode international characters #151
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
b4566ba
Support Unicode international characters
WesTyler 7c7901f
Disable linting for rewire "let" workaround
WesTyler 0ab6884
Add inline comment for eslint ignore on prefer-const rule
3487199
Expand test coverage of Unicode cases
WesTyler fbd9f1c
Utilize array.fill; do not pin dependency at the patch level
WesTyler 86c3194
Specify C0 and C1 charCode ranges to allow unicode
WesTyler 79e2261
Replace rewire with proxyquire
WesTyler 24f78ef
Remove "let" and eslint override introduced by rewire useage
WesTyler 996a71e
Add normalization to email addresses
WesTyler e836377
Monkey-patch V8 NUL normalize bug for Node 4.x
WesTyler 10bb502
Utilize indexOf instead of regex match for speed
WesTyler 38039b8
Add unicode length tests
skeggse 599a245
Check for surrogate pairs in token iteration
WesTyler 1fdcf9e
Check Buffer.byteLength instead of string.length
WesTyler 1d20f07
Deprecate internals.checkSurrogatePair
WesTyler File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@WesTyler I'm reading through some of this code as I refactor, and now I find myself asking where
192
came from. You wouldn't happen to recall, would you?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I believe 192 is the beginning of the Unicode "international" character set (À).
If I remember correctly, Unicode #s 123-191 are all non-character symbols.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh, ok. Thanks!