Skip to content

Commit

Permalink
fix: Fix allowed and denied items validation pattern
Browse files Browse the repository at this point in the history
Closes #180
  • Loading branch information
osipxd committed Apr 19, 2022
1 parent d0f2630 commit 43bb381
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ private boolean validateSlot(Slot slot) {

private boolean validateItems(List<String> itemsPatterns) {
for (String itemPattern : itemsPatterns) {
if (!itemPattern.matches("^[\\w_]+(:\\d+(-\\d)?)?$")) {
if (!itemPattern.matches("^[\\w_]+(:\\d+(-\\d+)?)?$")) {
Log.w("Allowed and denied items should fit to pattern ''[string]:[number]-[number]''");
Log.w("But it was: {0}", itemPattern);
return false;
Expand Down

0 comments on commit 43bb381

Please sign in to comment.