mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01:00
Merge pull request #2575 from RisingFog/iso-case-sensitive
Fix File Extension Search Being Case Sensitive
This commit is contained in:
commit
b2349d24da
@ -47,7 +47,7 @@ std::vector<std::string> DoFileSearch(const std::vector<std::string>& globs, con
|
||||
regex_str += std::regex_replace(std::regex_replace(str, std::regex("\\."), "\\."), std::regex("\\*"), ".*");
|
||||
}
|
||||
regex_str += ")$";
|
||||
std::regex regex(regex_str);
|
||||
std::regex regex(regex_str, std::regex_constants::icase);
|
||||
return FileSearchWithTest(directories, recursive, [&](const File::FSTEntry& entry) {
|
||||
return std::regex_match(entry.virtualName, regex);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user