mirror of
https://github.com/RGBCube/serenity
synced 2025-05-24 01:05:08 +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
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