You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Leading Unicode escapes and surrogate pair escapes are not parsed in RegExp group namesΒ #63995
/(?<a\u0061>)\k<a\u0061>\k<aa>/u;// Correct parsed/(?<\u0061>)\k<\u0061>\k<a>/u;// TS1514: Expected a capturing group name./(?<a\u{13000}>)\k<a\u{13000}>\k<aπ>/u;// Correct parsed/(?<\u{13000}>)\k<\u{13000}>\k<π>/u;// TS1514: Expected a capturing group name./(?<\uD80C\uDC00>)\k<\uD80C\uDC00>\k<π>/u;// TS1514: Expected a capturing group name./(?<a\uD80C\uDC00>)\k<a\uD80C\uDC00>\k<aπ>/u;// TS1005: '>' expected.
π Actual behavior
Errors are emitted at the start of Unicode escapes, extended Unicode escapes or surrogate pair escapes of 4 of the lines above.
π Expected behavior
All group names are correctly parsed and normalised, and no errors are emitted.
Additional information about the issue
Fixed in #63996, this issue is opened only for trackability and bookkeeping purpose.
Activity