AK: Make StringUtils::matches() handle escaping

This commit is contained in:
demostanis 2022-09-10 18:14:52 +02:00 committed by Linus Groh
commit aa788581f2
Notes: sideshowbarker 2024-07-17 05:49:56 +09:00

View file

@ -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;