Skip to content

Commit

Permalink
Fixed the bug caused in Filters that caused all but one expressions t…
Browse files Browse the repository at this point in the history
…o be skipped.

This is what was was broken in 7.1.1
  • Loading branch information
adya committed Apr 17, 2024
1 parent b1ebc5f commit b7f8ede
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions SPID/include/LookupConfigs.h
Original file line number Diff line number Diff line change
Expand Up @@ -329,21 +329,21 @@ namespace Distribution::INI
if (str.contains("+"sv)) {
auto strings = distribution::split_entry(str, "+");
data.stringFilters.ALL.insert(data.stringFilters.ALL.end(), strings.begin(), strings.end());
break;
continue;
}
}
if constexpr (flags & kAllowExclusionModifier) {
if (str.at(0) == '-') {
str.erase(0, 1);
data.stringFilters.NOT.emplace_back(str);
break;
continue;
}
}
if constexpr (flags & kAllowPartialMatchModifier) {
if (str.at(0) == '*') {
str.erase(0, 1);
data.stringFilters.ANY.emplace_back(str);
break;
continue;
}
}

Expand Down Expand Up @@ -371,15 +371,15 @@ namespace Distribution::INI
for (auto& IDs_ALL : splitIDs_ALL) {
data.formFilters.ALL.push_back(distribution::get_record(IDs_ALL));
}
break;
continue;
}
}

if constexpr (flags & kAllowExclusionModifier) {
if (IDs.at(0) == '-') {
IDs.erase(0, 1);
data.formFilters.NOT.push_back(distribution::get_record(IDs));
break;
continue;
}
}

Expand Down

0 comments on commit b7f8ede

Please sign in to comment.