mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:14:58 +00:00
AK: Make StringUtils::matches() handle escaping
This commit is contained in:
parent
70f4d943be
commit
aa788581f2
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