Add "!" delimiter to verbose matching

This commit is contained in:
Luck 2017-01-23 22:47:39 +00:00
parent 0c1a2e82bf
commit 02ea3afbe9
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -71,7 +71,7 @@ public class DebugListener {
return false; return false;
} }
StringTokenizer tokenizer = new StringTokenizer(filter, " |&()", true); StringTokenizer tokenizer = new StringTokenizer(filter, " |&()!", true);
StringBuilder expression = new StringBuilder(); StringBuilder expression = new StringBuilder();
while (tokenizer.hasMoreTokens()) { while (tokenizer.hasMoreTokens()) {
@ -104,7 +104,7 @@ public class DebugListener {
} }
private static boolean isDelim(String token) { private static boolean isDelim(String token) {
return token.equals(" ") || token.equals("|") || token.equals("&") || token.equals("(") || token.equals(")"); return token.equals(" ") || token.equals("|") || token.equals("&") || token.equals("(") || token.equals(")") || token.equals("!");
} }
public String uploadPastedData() { public String uploadPastedData() {