allow leading 0s, but still limit max length to 6

This commit is contained in:
eugenesvk 2025-01-21 13:51:44 +07:00
parent aa9a4439a5
commit a84dc3b44f
2 changed files with 1 additions and 2 deletions

View File

@ -983,7 +983,7 @@ string-character :=
[^\\"] - disallowed-literal-code-points
ws-escape := '\\' (unicode-space | newline)+
hex-digit := [0-9a-fA-F]
hex-unicode := [\u{0}-\u{10FFFF}] - surrogate // Unicode Scalar Value₁₆
hex-unicode := [\u{0}-\u{10FFFF}] - surrogate // Unicode Scalar Value₁₆, leading 0s allowed as long as length ≤ 6
surrogate := [\u{D800}-\u{DFFF}]
raw-string := '#' raw-string-quotes '#' | '#' raw-string '#'

View File

@ -1 +0,0 @@
no "Non-canonical format for Unicode Scalar Value with extra 0s: \u{00FFFF} instead of \u{FFFF}"