Everywhere: Change exclude path configuration formatting

This commit is contained in:
Riyyi
2022-03-06 17:10:08 +01:00
parent 4ff3092b2f
commit b37a8087e9
6 changed files with 91 additions and 84 deletions
+1 -2
View File
@@ -115,8 +115,7 @@ bool Dotfile::filter(const std::filesystem::directory_entry& path)
size_t cutFrom = pathString.find(Config::the().workingDirectory()) == 0 ? Config::the().workingDirectorySize() : 0;
pathString = pathString.substr(cutFrom);
for (const auto& excludePathMapEntry : Config::the().excludePaths()) {
const auto& excludePath = excludePathMapEntry.first;
for (const auto& excludePath : Config::the().excludePaths()) {
if (pathString == excludePath) {
return true;