Skip to content

Commit

Permalink
Fixing js engine prefix detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
abpai94 committed Sep 18, 2024
1 parent 1ec22fb commit 99fc6af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/lsc/utils/ScriptingEvaluator.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;

Expand Down Expand Up @@ -152,7 +153,6 @@ public void compileRegexPatternMatch() {
pattern = Pattern.compile(jscriptEngine);
prefixRegex.put(pattern, jscriptEngine);
}
return defaultImplementation.orElseThrow(() -> new LscServiceException("Missing Script evaluator"));
}

/**
Expand Down

0 comments on commit 99fc6af

Please sign in to comment.