mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:07:35 +00:00
LibRegex: Allow unknown escapes in non-unicode mode (for ECMA262)
This makes regexps like `/\x/` to work as normal. Partially deals with #4189.
This commit is contained in:
parent
801750b95a
commit
e2fa1b40c4
4 changed files with 64 additions and 4 deletions
|
@ -92,6 +92,7 @@ public:
|
|||
void back(size_t offset);
|
||||
void set_source(const StringView source) { m_source = source; }
|
||||
bool try_skip(char);
|
||||
char skip();
|
||||
|
||||
StringView slice_back(size_t offset) const { return m_source.substring_view(m_position - offset - 1, offset); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue