Skip to content
Permalink
Browse files
Use Pattern cache from JMeterUtils
  • Loading branch information
FSchumacher committed Mar 5, 2022
1 parent ed12cad commit be942ea52fa09b17406795cf24863a85efe8784f
Showing 1 changed file with 1 addition and 1 deletion.
@@ -111,7 +111,7 @@ private JMeterProperty transformValueWithJavaRegex(JMeterProperty prop) throws I
String value = entry.getValue();
if (regexMatch) {
try {
java.util.regex.Pattern pattern = java.util.regex.Pattern.compile(constructPattern(value));
java.util.regex.Pattern pattern = JMeterUtils.compilePattern(constructPattern(value));
input = pattern.matcher(input).replaceAll(FUNCTION_REF_PREFIX + key + FUNCTION_REF_SUFFIX);
} catch (PatternSyntaxException e) {
log.warn("Malformed pattern: {}", value);

0 comments on commit be942ea

Please sign in to comment.