mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-03-28 06:29:41 -06:00
fix (#4088)
This commit is contained in:
parent
6a8c50c3a2
commit
dbf23a66af
@ -330,7 +330,7 @@ static bool match(std::string_view str, std::string_view pattern) {
|
||||
auto pat_it = pattern.begin();
|
||||
while (str_it != str.end() && pat_it != pattern.end()) {
|
||||
if (*pat_it == '%') { // 0 or more wildcard
|
||||
for (auto str_wild_it = str_it; str_wild_it <= str.end(); ++str_wild_it) {
|
||||
for (auto str_wild_it = str_it; str_wild_it < str.end(); ++str_wild_it) {
|
||||
if (match({str_wild_it, str.end()}, {pat_it + 1, pattern.end()})) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user