mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-23 02:42:10 +00:00
LibRegex: Allow dollar signs in ECMA262 named capture groups
Fixes 1 test262 test.
This commit is contained in:
parent
d3a2e492fb
commit
65003241e4
Notes:
sideshowbarker
2024-07-18 10:16:25 +09:00
Author: https://github.com/trflynn89
Commit: 65003241e4
Pull-request: https://github.com/SerenityOS/serenity/pull/8505
3 changed files with 25 additions and 1 deletions
|
|
@ -1625,7 +1625,7 @@ StringView ECMA262Parser::read_capture_group_specifier(bool take_starting_angle_
|
|||
|
||||
auto start_token = m_parser_state.current_token;
|
||||
size_t offset = 0;
|
||||
while (match(TokenType::Char)) {
|
||||
while (match(TokenType::Char) || match(TokenType::Dollar)) {
|
||||
auto c = m_parser_state.current_token.value();
|
||||
if (c == ">")
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue