Fix File Extension Search Being Case Sensitive

This commit is contained in:
Fog 2015-06-08 21:39:00 -04:00
parent 42d5b5b48c
commit 519d2549dd
1 changed files with 1 additions and 1 deletions

View File

@ -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_replace(std::regex_replace(str, std::regex("\\."), "\\."), std::regex("\\*"), ".*");
} }
regex_str += ")$"; 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 FileSearchWithTest(directories, recursive, [&](const File::FSTEntry& entry) {
return std::regex_match(entry.virtualName, regex); return std::regex_match(entry.virtualName, regex);
}); });