mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 15:17:29 +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
|
// an identity escape for non-Unicode patterns without named
|
||||||
// capture groups, and as the beginning of a named back-reference
|
// capture groups, and as the beginning of a named back-reference
|
||||||
// in all other cases.
|
// in all other cases.
|
||||||
|
Advance(2);
|
||||||
if (unicode_ || HasNamedCaptures()) {
|
if (unicode_ || HasNamedCaptures()) {
|
||||||
Advance(2);
|
|
||||||
if (!ParseNamedBackReference(builder, state)) {
|
if (!ParseNamedBackReference(builder, state)) {
|
||||||
return ReportError(JSMSG_INVALID_IDENTITY_ESCAPE);
|
return ReportError(JSMSG_INVALID_IDENTITY_ESCAPE);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue