Skip to content

Commit

Permalink
Comment typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rupert-griffin authored Jul 31, 2024
1 parent c0b9ccf commit 1358dd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/emissary/output/filter/AbstractFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,12 @@ protected String validateAndRemoveDenylistFiletype(final String entry) {
String filetype = names[0];
String viewName = names[1];

if (filetype.equals("*")) { // DENYLIST = "*.<viewName>" now allowed
if (filetype.equals("*")) { // DENYLIST = "*.<viewName>" not allowed
throw new EmissaryRuntimeException(String.format(
"Invalid filter configuration: `DENYLIST = %s` " +
"wildcarded filetypes not allowed in denylist - Did you mean `DENYLIST = \"%s\"`?",
entry, viewName));
} else if (!filetype.chars().allMatch(ch -> Character.isLetterOrDigit(ch) || ch == '_')) { // DENYLIST = "<type>*.<viewName>" now allowed
} else if (!filetype.chars().allMatch(ch -> Character.isLetterOrDigit(ch) || ch == '_')) { // DENYLIST = "<type>*.<viewName>" not allowed
throw new EmissaryRuntimeException(String.format(
"Invalid filter configuration: `DENYLIST = %s` " +
"filetype `%s` must be a sequence of [A-Z, a-z, 0-9, _]",
Expand Down

0 comments on commit 1358dd6

Please sign in to comment.