mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 04:37:22 +00:00
LibRegex: Use the parser state capture group count in BRE
Otherwise the users won't know how many capture groups are in the parsed regular expression.
This commit is contained in:
parent
1c584e9d80
commit
11a8476cf4
Notes:
sideshowbarker
2024-07-18 09:24:41 +09:00
Author: https://github.com/alimpfard
Commit: 11a8476cf4
Pull-request: https://github.com/SerenityOS/serenity/pull/8617
Reviewed-by: https://github.com/linusg ✅
2 changed files with 1 additions and 2 deletions
|
@ -155,7 +155,6 @@ private:
|
|||
bool parse_nonduplicating_re(ByteCode&, size_t&);
|
||||
bool parse_one_char_or_collation_element(ByteCode&, size_t&);
|
||||
|
||||
size_t m_capture_group { 0 };
|
||||
constexpr static size_t number_of_addressable_capture_groups = 9;
|
||||
size_t m_capture_group_minimum_lengths[number_of_addressable_capture_groups] { 0 };
|
||||
bool m_capture_group_seen[number_of_addressable_capture_groups] { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue