1
Fork 0
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:
Ali Mohammad Pur 2022-09-06 23:55:09 +04:30 committed by Ali Mohammad Pur
parent 48442059fc
commit 660d2b53b1
2 changed files with 2 additions and 1 deletions

View file

@ -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;