summaryrefslogtreecommitdiff
path: root/Shell/main.cpp
diff options
context:
space:
mode:
authorhowar6hill <f.eiwu@yahoo.com>2020-02-26 15:25:24 +0800
committerAndreas Kling <kling@serenityos.org>2020-03-02 10:38:08 +0100
commit055344f3461a28578f8b49e9f2431bb9f22936b4 (patch)
tree4a39e875cef56df1950d56a2dd385898f0d000fc /Shell/main.cpp
parent2a30a020c13e462cba6e197f92a3171d79b12ba2 (diff)
downloadserenity-055344f3461a28578f8b49e9f2431bb9f22936b4.zip
AK: Move the wildcard-matching implementation to StringUtils
Provide wrappers in the String and StringView classes, and add some tests.
Diffstat (limited to 'Shell/main.cpp')
-rw-r--r--Shell/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Shell/main.cpp b/Shell/main.cpp
index d63f02ccb6..992f2740cb 100644
--- a/Shell/main.cpp
+++ b/Shell/main.cpp
@@ -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);