Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ private Pair<MappedStatement, Object> getArgs(Invocation invocation) {
*/
private String replaceFirst(String originalSql, String propertyName, String parameterValue) {
//(\$|#)\{\s*epNo2((?!\{).)*}
return originalSql.replaceFirst("(\\$|#)\\{\\s*" + Matcher.quoteReplacement(propertyName) + "((?!\\{).)*}", Matcher.quoteReplacement(parameterValue));
return originalSql.replaceFirst("(\\$|#)\\{\\s*" + Matcher.quoteReplacement(propertyName) + "((?!\\{).)*}",
Matcher.quoteReplacement(parameterValue.replace("$", "\\$")));
}

/**
Expand Down