Quote string replacements to avoid pattern issues
This commit is contained in:
parent
7ac8998e5a
commit
f0f038b57a
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ public class ParameterizedCommandExceptionType implements CommandExceptionType {
|
|||
final Matcher matcher = PATTERN.matcher(message);
|
||||
final StringBuffer result = new StringBuffer();
|
||||
while (matcher.find()) {
|
||||
matcher.appendReplacement(result, exception.getData().get(matcher.group(1)).toString());
|
||||
matcher.appendReplacement(result, Matcher.quoteReplacement(exception.getData().get(matcher.group(1)).toString()));
|
||||
}
|
||||
matcher.appendTail(result);
|
||||
return result.toString();
|
||||
|
|
Loading…
Reference in a new issue