mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-03 14:50:18 +00:00
AK: Move the wildcard-matching implementation to StringUtils
Provide wrappers in the String and StringView classes, and add some tests.
This commit is contained in:
parent
2a30a020c1
commit
055344f346
Notes:
sideshowbarker
2024-07-19 17:38:07 +09:00
Author: https://github.com/f-eiwu
Commit: 055344f346
Pull-request: https://github.com/SerenityOS/serenity/pull/1302
Reviewed-by: https://github.com/awesomekling
16 changed files with 147 additions and 62 deletions
|
@ -630,7 +630,7 @@ static Vector<String> expand_globs(const StringView& path, const StringView& bas
|
|||
if (name[0] == '.' && part[0] != '.')
|
||||
continue;
|
||||
|
||||
if (name.matches(part, String::CaseSensitivity::CaseSensitive)) {
|
||||
if (name.matches(part, CaseSensitivity::CaseSensitive)) {
|
||||
|
||||
StringBuilder nested_base;
|
||||
nested_base.append(new_base);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue