From f1f9ac4042b5d84722e081c6f5b121024e83586a Mon Sep 17 00:00:00 2001 From: Laurent Bossavit Date: Fri, 8 Sep 2017 10:09:19 +0200 Subject: [PATCH] =?UTF-8?q?:bug:=20Corrige=20l'=C3=A9valuation=20de=20!=3D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/engine/traverse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/engine/traverse.js b/source/engine/traverse.js index b946b2a74..cfdb40814 100644 --- a/source/engine/traverse.js +++ b/source/engine/traverse.js @@ -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)