mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
LibRegex: Use match_ordinary_characters() in ECMA262Parser::parse_atom()
Otherwise we would only match TokenType::Char, making all of these invalid: - /foo,bar/ - /foo\/bar/ - /foo=bar/ - /foo-bar/ - /foo:bar/ Fixes #4243.
This commit is contained in:
parent
1279d2256c
commit
eea7cabdbc
Notes:
sideshowbarker
2024-07-19 01:10:57 +09:00
Author: https://github.com/linusg
Commit: eea7cabdbc
Pull-request: https://github.com/SerenityOS/serenity/pull/4245
Issue: https://github.com/SerenityOS/serenity/issues/4243
Reviewed-by: https://github.com/alimpfard ✅
3 changed files with 16 additions and 15 deletions
|
@ -488,6 +488,7 @@ TEST_CASE(ECMA262_parse)
|
|||
"^[\\w+/_-]+[=]{0,2}$", // #4189
|
||||
"^(?:[^<]*(<[\\w\\W]+>)[^>]*$|#([\\w\\-]*)$)", // #4189
|
||||
"\\/", // #4189
|
||||
",/=-:", // #4243
|
||||
"\\x", // Even invalid escapes are allowed if ~unicode.
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue