mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
Follow-up #2060 - Correctly handle \k in non-unicode expressions
This commit is contained in:
parent
81a8ac427a
commit
904ddfa28f
1 changed files with 1 additions and 1 deletions
|
|
@ -2069,8 +2069,8 @@ RegExpParser<CharT>::ParseDisjunction()
|
|||
// an identity escape for non-Unicode patterns without named
|
||||
// capture groups, and as the beginning of a named back-reference
|
||||
// in all other cases.
|
||||
Advance(2);
|
||||
if (unicode_ || HasNamedCaptures()) {
|
||||
Advance(2);
|
||||
if (!ParseNamedBackReference(builder, state)) {
|
||||
return ReportError(JSMSG_INVALID_IDENTITY_ESCAPE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue