Skip to content

Commit c0f34dd

Browse files
committed
Merge branch 'master' of github.com:CppCXY/EmmyLuaCodeStyle
2 parents 04b8bd4 + 3c354ee commit c0f34dd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Util/src/StringUtil.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ std::string_view StringUtil::GetFileRelativePath(std::string_view workspace, std
150150
}
151151
}
152152

153-
if (i < filePath.size() && filePath[i] == '\\' || filePath[i] == '/')
153+
if (i < filePath.size()
154+
&& (filePath[i] == '\\' || filePath[i] == '/'))
154155
{
155156
i++;
156157
}
@@ -185,7 +186,7 @@ bool StringUtil::FileWildcardMatch(std::string_view sourceFile, std::string_view
185186

186187
if(!match)
187188
{
188-
match = wildcards::match(sourceFile, pattern, equal_to()).res;
189+
match = wildcards::match(sourceFile, pattern, eq).res;
189190
}
190191
return match;
191192
}

0 commit comments

Comments
 (0)