Skip to content

Commit

Permalink
fix: tag string filtering
Browse files Browse the repository at this point in the history
Closes #918
  • Loading branch information
klikli-dev committed Apr 28, 2023
1 parent 937ae10 commit 8b57d35
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ public static boolean matchesFilter(ItemStack stack, String tagFilter) {
filter = filter.substring(4);
}
final String finalFilter = filter;
boolean equals = stack.getTags().anyMatch(rl -> {
return FilenameUtils.wildcardMatch(rl.toString(), finalFilter, IOCase.INSENSITIVE);
boolean equals = stack.getTags().anyMatch(tag -> {
return FilenameUtils.wildcardMatch(tag.location().toString(), finalFilter, IOCase.INSENSITIVE);
});

if (equals) {
Expand Down

0 comments on commit 8b57d35

Please sign in to comment.