Skip to content

Commit

Permalink
Conductor single quote (#33)
Browse files Browse the repository at this point in the history
* replace single quote

* test

* single quote conductor

* log

* test

* clean

* clean up

* update nebula.netflixoss

* update nebula.netflixoss

* update nebula.netflixoss

* trial

* trial

* trial

---------

Co-authored-by: Aravind Chandrasekaran <[email protected]>
  • Loading branch information
prabhakaranE6157 and aravind-chandrasekaran authored Jul 22, 2024
1 parent b133aeb commit 5ef137e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ plugins {
id 'java'
id 'application'
id 'jacoco'
id 'nebula.netflixoss' version '10.6.0'
id 'nebula.netflixoss' version '11.1.0'
id 'org.sonarqube' version '3.4.0.2513'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@
public class JavascriptEvaluator implements Evaluator {

public static final String NAME = "javascript";
public static final String UNIQUE_DELIMITER = "###DEL###"; // Highly unlikely sequence
private static final Logger LOGGER = LoggerFactory.getLogger(JavascriptEvaluator.class);

@Override
public Object evaluate(String expression, Object input) {
LOGGER.debug("Javascript evaluator -- expression: {}", expression);
try {
expression = expression.replace(UNIQUE_DELIMITER, "\\'");
LOGGER.debug("Javascript evaluator -- expression: {}", expression);
// Evaluate the expression by using the Javascript evaluation engine.
Object result = ScriptEvaluator.eval(expression, input);
LOGGER.debug("Javascript evaluator -- result: {}", result);
Expand Down

0 comments on commit 5ef137e

Please sign in to comment.