mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 16:19:23 +00:00
LibRegex: Remove backup file, remove BOM in RegexParser.cpp, run clang-format
This commit is contained in:
parent
3b7884ee8a
commit
6add8b9c05
Notes:
sideshowbarker
2024-07-19 01:15:01 +09:00
Author: https://github.com/lnzero1dev
Commit: 6add8b9c05
Pull-request: https://github.com/SerenityOS/serenity/pull/4103
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg ✅
9 changed files with 8 additions and 1069 deletions
|
@ -201,7 +201,7 @@ RegexResult Matcher<Parser>::match(const Vector<RegexStringView> views, Optional
|
|||
if (match_count) {
|
||||
auto capture_groups_count = min(output.capture_group_matches.size(), output.matches.size());
|
||||
for (size_t i = 0; i < capture_groups_count; ++i) {
|
||||
if(input.regex_options & AllFlags::SkipTrimEmptyMatches) {
|
||||
if (input.regex_options & AllFlags::SkipTrimEmptyMatches) {
|
||||
output_copy.capture_group_matches.append(output.capture_group_matches.at(i));
|
||||
} else {
|
||||
Vector<Match> capture_group_matches;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue