-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Normative: Fully specify legal escape sequences in RegExp capture gro…
…up names (#1869) This commit makes the Early Errors for RegExpIdentifierStart and RegExpIdentifierPart fully specified, with the semantics that Unicode escape sequences of the form `\u LeadSurrogate \u TrailSurrogate` as well as \u { CodePoint }` are legal in named capture group names for both Unicode and non-Unicode regular expressions. This commit thus makes legal all of the following: - `/(?<\ud835\udc9c>.)/` - `/(?<\ud835\udc9c>.)/u` - `/(?<\u{1d49c}>.)/` - `/(?<\u{1d49c}>.)/u` - `/(?<𝒜>)/` - `/(?<𝒜>)/u` Fixes #1861
- Loading branch information
Showing
1 changed file
with
15 additions
and
15 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