diff --git a/src/js/rulesAssistant.tw b/src/js/rulesAssistant.tw index ee4ace3c33cbc1e9023392a82d2d664849653fef..088f0bd166f01d0bbd40e8ebfbc3d39e1ada756d 100644 --- a/src/js/rulesAssistant.tw +++ b/src/js/rulesAssistant.tw @@ -247,9 +247,14 @@ window.evalExpr = function(expr, env) { return true; case "false": return false; - case "(number)": case "(string)": + case "(number)": return expr.value; - + case "(string)": + if(expr.value.startsWith('"') && expr.value.endsWith('"')) { + return JSON.parse(expr.value); + } else { + return expr.value; + } case "(name)": return env[expr.name];