-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exclude hex above max Unicode Scalar Value (#456)
* Exclude hex above max Unicode Scalar Value simplify surrogate regex to use ranges * allow leading 0s, but still limit max length to 6 * Add explicit regex-set rules to hex unicode document {1,3} ranges * add space-separators between sets * Make test fail *only* for length limits Previously it failed due to specifying a codepoint past max *as well*, obscuring the intended fail condition. --------- Co-authored-by: Tab Atkins Jr. <[email protected]>
- Loading branch information
Showing
3 changed files
with
9 additions
and
4 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
no "Higher than max Unicode Scalar Value \u{10FFFF} \u{11FFFF}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
no "Even with leading 0s Unicode Scalar Value escapes must ≤6: \u{0012345}" |