mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 02:09:24 +00:00
AK: Make StringUtils::matches() handle escaping
This commit is contained in:
parent
70f4d943be
commit
aa788581f2
Notes:
sideshowbarker
2024-07-17 05:49:56 +09:00
Author: https://github.com/demostanis
Commit: aa788581f2
Pull-request: https://github.com/SerenityOS/serenity/pull/15195
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/Xexxa ✅
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/timschumi ✅
1 changed files with 3 additions and 0 deletions
|
@ -59,6 +59,9 @@ bool matches(StringView str, StringView mask, CaseSensitivity case_sensitivity,
|
|||
case '?':
|
||||
record_span(string_ptr - string_start, 1);
|
||||
break;
|
||||
case '\\':
|
||||
++mask_ptr;
|
||||
break;
|
||||
default:
|
||||
auto p = *mask_ptr;
|
||||
auto ch = *string_ptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue