🐛 Corrige l'évaluation de !=

pull/47/head
Laurent Bossavit 2017-09-08 10:09:19 +02:00
parent 408ee81654
commit f1f9ac4042
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ let treat = (rules, rule) => rawNode => {
explanation = R.map(R.curry(evaluateNode)(situation,parsedRules),node.explanation),
value1 = explanation[0].nodeValue,
value2 = explanation[1].nodeValue,
operatorFunction = operatorFunctionName == "!=" ? (a => b => !R.equals(a,b)) : R[operatorFunctionName],
operatorFunction = node.operator == "!=" ? ((a, b) => !R.equals(a,b)) : R[operatorFunctionName],
nodeValue = value1 == null || value2 == null ?
null
: operatorFunction(value1, value2)