mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
LibRegex: Match the escaped part of escaped syntax characters
Previously, `\^` would've matched `\`, not `^`.
This commit is contained in:
parent
f05e518cbc
commit
91bf3dc7fe
Notes:
sideshowbarker
2024-07-18 21:53:39 +09:00
Author: https://github.com/alimpfard
Commit: 91bf3dc7fe
Pull-request: https://github.com/SerenityOS/serenity/pull/5538
Issue: https://github.com/SerenityOS/serenity/issues/5517
Issue: https://github.com/SerenityOS/serenity/issues/5518
Reviewed-by: https://github.com/linusg
Reviewed-by: https://github.com/tomuta
2 changed files with 2 additions and 1 deletions
|
@ -549,6 +549,7 @@ TEST_CASE(ECMA262_match)
|
|||
{ "bar.*(?<!foo)", "barbar", true },
|
||||
{ "((...)X)+", "fooXbarXbazX", true },
|
||||
{ "(?:)", "", true },
|
||||
{ "\\^", "^" },
|
||||
// ECMA262, B.1.4. Regular Expression Pattern extensions for browsers
|
||||
{ "{", "{", true, ECMAScriptFlags::BrowserExtended },
|
||||
{ "\\5", "\5", true, ECMAScriptFlags::BrowserExtended },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue