diff --git a/src/main/java/org/lsc/utils/ScriptingEvaluator.java b/src/main/java/org/lsc/utils/ScriptingEvaluator.java index 2ff065b6..aa39a4c2 100644 --- a/src/main/java/org/lsc/utils/ScriptingEvaluator.java +++ b/src/main/java/org/lsc/utils/ScriptingEvaluator.java @@ -5,6 +5,7 @@ import java.util.Map; import java.util.Optional; import java.util.function.Predicate; +import java.util.regex.Pattern; import javax.script.*; @@ -152,7 +153,6 @@ public void compileRegexPatternMatch() { pattern = Pattern.compile(jscriptEngine); prefixRegex.put(pattern, jscriptEngine); } - return defaultImplementation.orElseThrow(() -> new LscServiceException("Missing Script evaluator")); } /**