mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:18:12 +00:00
LibRegex: Account for eof after \<x> when 'x' leads to legacy behaviour
This commit is contained in:
parent
48442059fc
commit
660d2b53b1
2 changed files with 2 additions and 1 deletions
|
@ -1582,7 +1582,7 @@ bool ECMA262Parser::parse_atom_escape(ByteCode& stack, size_t& match_length_mini
|
|||
}
|
||||
|
||||
// If not, put the characters back.
|
||||
back(escape_str.length());
|
||||
back(escape_str.length() + (done() ? 0 : 1));
|
||||
}
|
||||
|
||||
Vector<CompareTypeAndValuePair> escape_compares;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue