Fixes Invalid Regex in Exception Messege(SQL builder)
This commit is contained in:
committed by
Michael Vorburger ⛑️
parent
6c6839a70f
commit
885d2e9a57
+2
-1
@@ -76,7 +76,8 @@ public class SQLBuilder {
|
||||
}
|
||||
String columnName = trimmedCriteria.substring(0, columnOperatorIndex).trim().toLowerCase(Locale.ROOT);
|
||||
if (!ATOZ.matcher(columnName).matches()) {
|
||||
throw new IllegalArgumentException("criteria column name must match [a-z]: " + trimmedCriteria);
|
||||
throw new IllegalArgumentException(
|
||||
"criteria column name must match [a-zA-Z_][a-zA-Z0-9_-]*\\.)?[a-zA-Z_-][a-zA-Z0-9_-]* : " + trimmedCriteria);
|
||||
}
|
||||
String operator = trimmedCriteria.substring(columnOperatorIndex).trim();
|
||||
if (operator.indexOf(' ') > -1) {
|
||||
|
||||
Reference in New Issue
Block a user