Skip to content
Permalink
Browse files
Use Pattern cache from JMeterUtils
  • Loading branch information
FSchumacher committed Mar 5, 2022
1 parent 045a805 commit 18211407e20334469b9948282c04ce1ee3a4c91f
Showing 1 changed file with 2 additions and 2 deletions.
@@ -176,7 +176,7 @@ private Function<String, String> generateExtractor(String regex) {
}

private Function<String, String> generateExtractorWithJavaRegex(String regex) {
java.util.regex.Pattern pattern = java.util.regex.Pattern.compile(
java.util.regex.Pattern pattern = JMeterUtils.compilePattern(
regex,
java.util.regex.Pattern.MULTILINE);
return text -> {
@@ -210,7 +210,7 @@ private Function<String, String> generateFirstMatchExtractor(String regex) {
}

private Function<String, String> generateFirstMatchExtractorWithJavaRegex(String regex) {
java.util.regex.Pattern pattern = java.util.regex.Pattern.compile(
java.util.regex.Pattern pattern = JMeterUtils.compilePattern(
regex,
java.util.regex.Pattern.MULTILINE);
return text -> {

0 comments on commit 1821140

Please sign in to comment.