From 519d2549dd5c44555e469e0d596c72b930b98945 Mon Sep 17 00:00:00 2001 From: Fog Date: Mon, 8 Jun 2015 21:39:00 -0400 Subject: [PATCH] Fix File Extension Search Being Case Sensitive --- Source/Core/Common/FileSearch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Common/FileSearch.cpp b/Source/Core/Common/FileSearch.cpp index 32bffa8ed7..13e99fe88a 100644 --- a/Source/Core/Common/FileSearch.cpp +++ b/Source/Core/Common/FileSearch.cpp @@ -47,7 +47,7 @@ std::vector DoFileSearch(const std::vector& 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); });