mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 19:29:16 +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:
committed by
Andreas Kling
parent
2a30a020c1
commit
055344f346
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user