|
|
@@ -769,7 +769,8 @@ public class StringUtils {
|
|
|
if (StringUtils.isBlank(text) || CollectionUtils.isEmpty(varNames)) {
|
|
|
return text;
|
|
|
}
|
|
|
- Pattern pattern = Pattern.compile("\\$\\{([^}]+)\\}");
|
|
|
+ String str = "\\$\\{([^}]+)\\}";
|
|
|
+ Pattern pattern = Pattern.compile(str);
|
|
|
Matcher matcher = pattern.matcher(text);
|
|
|
StringBuilder result = new StringBuilder();
|
|
|
while (matcher.find()) {
|