Skip to content

Commit

Permalink
Add a space
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Nov 6, 2023
1 parent 57ff3cd commit 94c931e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private static boolean simpleMatchWithNormalizedStrings(String pattern, String s
// str.endsWith(pattern.substring(1)), but avoiding the construction of pattern.substring(1):
return str.regionMatches(str.length() - pattern.length() + 1, pattern, 1, pattern.length() - 1);
} else if (nextIndex == 1) {
throw new IllegalArgumentException("Input pattern " + pattern + "contains duplicate adjacent wildcards (*).");
throw new IllegalArgumentException("Input pattern " + pattern + " contains duplicate adjacent wildcards (*).");
}
final String part = pattern.substring(1, nextIndex);
int partIndex = str.indexOf(part);
Expand Down

0 comments on commit 94c931e

Please sign in to comment.