In version 6.0.7 of spring-expression there was a method added called checkRegexLength:
|
private void checkRegexLength(String regex) { |
|
if (regex.length() > MAX_REGEX_LENGTH) { |
|
throw new SpelEvaluationException(getStartPosition(), |
|
SpelMessage.MAX_REGEX_LENGTH_EXCEEDED, MAX_REGEX_LENGTH); |
|
} |
|
} |
It is adding a 256 char limit check on a length of a regex in a SpEL expression. We actually use longer regexes. Why would you put this limit? Seems quite random.
Please remove this check or at least make that max regex length value configurable.