From 4332df1c419a13c244f0afbc1e0101ff4435587f Mon Sep 17 00:00:00 2001 From: fatcat386 Date: Wed, 8 Mar 2017 13:27:41 +0300 Subject: [PATCH] allow to use <= and >= operators in if statement --- lib/preprocess.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/preprocess.js b/lib/preprocess.js index e401d29..4ea4a0c 100644 --- a/lib/preprocess.js +++ b/lib/preprocess.js @@ -357,7 +357,7 @@ function getTestTemplate(test) { test = test.trim(); // force single equals replacement - test = test.replace(/([^=!])=([^=])/g, '$1==$2'); + test = test.replace(/([^=!<>])=([^=])/g, '$1==$2'); return new Function("context", "with (context||{}){ return ( " + test + " ); }"); }