remove brackets from console query
@@ -45,6 +45,8 @@ private CamelCaseMatcher() {
String query = queryStr.replaceAll("\\*", ".*?");
query = query.replaceFirst("\\b([a-z]+)", "$1[a-z]*");
+ query = query.replaceAll("\\(|\\)|\\[|\\]|\\{|\\}", "");
+
String re = "\\b(" + query.replaceAll("([A-Z][^A-Z]*)", "$1[^A-Z]*") + ".*?)\\b";
Pattern regex = Pattern.compile(re);
