Skip to content

Commit

Permalink
PMD.
Browse files Browse the repository at this point in the history
  • Loading branch information
riverwanderer committed Oct 2, 2023
1 parent b0e0267 commit 4bdbca6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2705,7 +2705,7 @@ private Pattern setupRegexSearch(String searchString) {
// FIXME: this test may be insufficient - it curtails escape characters unless other Regex ops are specified.
if (!searchString.matches("\\.|\\+|\\*|\\?|\\^|\\$|\\(.*\\)|\\[.*\\]|\\{.*\\}|\\|")) {
try {
final Pattern wordPattern = Pattern.compile(".*\b" + searchString + "\b.*"); // test
Pattern.compile(".*\b" + searchString + "\b.*"); // test
chat("No Regex special characters detected; a word boundary search will be performed."); // NON-NLS
searchString = ".*\b" + searchString + "\b.*";
}
Expand Down

0 comments on commit 4bdbca6

Please sign in to comment.