Skip to content
Permalink
Browse files
Use Pattern cache from JMeterUtils
  • Loading branch information
FSchumacher committed Mar 5, 2022
1 parent be942ea commit e6a791d2f860a0e586901b13f1fd24bd6ea3475a
Showing 1 changed file with 1 addition and 1 deletion.
@@ -193,7 +193,7 @@ private static String getHeaderValue(String headerName, String multiPart) {
}

private static String getHeaderValueWithJavaRegex(String multiPart, String regularExpression) {
java.util.regex.Pattern pattern = java.util.regex.Pattern.compile(regularExpression,
java.util.regex.Pattern pattern = JMeterUtils.compilePattern(regularExpression,
java.util.regex.Pattern.CASE_INSENSITIVE
| java.util.regex.Pattern.MULTILINE);
Matcher matcher = pattern.matcher(multiPart);

0 comments on commit e6a791d

Please sign in to comment.