From 99fc6afa795d8a233dd31da0bc2d32d6970a2852 Mon Sep 17 00:00:00 2001 From: Abhishek Pai Date: Wed, 18 Sep 2024 17:13:08 +0200 Subject: [PATCH] Fixing js engine prefix detection. --- src/main/java/org/lsc/utils/ScriptingEvaluator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")); } /**