Commit d76063e
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]>1 parent e9e6a84 commit d76063e
File tree
3 files changed
+9
-4
lines changed- tests/test_cases/input
3 files changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
983 | 983 | | |
984 | 984 | | |
985 | 985 | | |
986 | | - | |
987 | | - | |
988 | | - | |
989 | | - | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
990 | 993 | | |
991 | 994 | | |
992 | 995 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments