diff options
Diffstat (limited to 'lib/common/ExcludeList.cpp')
-rw-r--r-- | lib/common/ExcludeList.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/common/ExcludeList.cpp b/lib/common/ExcludeList.cpp index edbf1a6a..c7c80ed2 100644 --- a/lib/common/ExcludeList.cpp +++ b/lib/common/ExcludeList.cpp @@ -101,11 +101,14 @@ std::string ExcludeList::ReplaceSlashesRegex(const std::string& input) const output.replace(pos, 1, "\\" DIRECTORY_SEPARATOR); } +<<<<<<< HEAD for (std::string::iterator i = output.begin(); i != output.end(); i++) { *i = tolower(*i); } +======= +>>>>>>> 0.12 return output; } #endif @@ -185,17 +188,30 @@ void ExcludeList::AddRegexEntries(const std::string &rEntries) try { std::string entry = *i; +<<<<<<< HEAD +======= + int flags = REG_EXTENDED | REG_NOSUB; +>>>>>>> 0.12 // Convert any forward slashes in the string // to appropriately escaped backslashes #ifdef WIN32 entry = ReplaceSlashesRegex(entry); +<<<<<<< HEAD #endif // Compile int errcode = ::regcomp(pregex, entry.c_str(), REG_EXTENDED | REG_NOSUB); +======= + flags |= REG_ICASE; // Windows convention + #endif + + // Compile + int errcode = ::regcomp(pregex, entry.c_str(), + flags); +>>>>>>> 0.12 if (errcode != 0) { @@ -238,6 +254,10 @@ bool ExcludeList::IsExcluded(const std::string &rTest) const std::string test = rTest; #ifdef WIN32 +<<<<<<< HEAD +======= + // converts to lower case as well +>>>>>>> 0.12 test = ReplaceSlashesDefinite(test); #endif |