Skip to content

Commit

Permalink
minor advanced matcher tag compat helper
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed May 24, 2021
1 parent 039340a commit 8f3c862
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -699,7 +699,11 @@ else if (input.startsWith("regex:")) {
result = new RegexMatchHelper(input.substring("regex:".length()));
}
else if (CoreUtilities.contains(input, '|')) {
List<String> split = CoreUtilities.split(input, '|');
String toSplit = input;
if (toSplit.startsWith("li@")) {
toSplit = toSplit.substring("li@".length());
}
List<String> split = CoreUtilities.split(toSplit, '|');
MatchHelper[] matchers = new MatchHelper[split.size()];
for (int i = 0; i < split.size(); i++) {
matchers[i] = createMatcher(split.get(i));
Expand Down

0 comments on commit 8f3c862

Please sign in to comment.