From 8d7a8693b9559a291b7e2def84ee82b541404420 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 5 Aug 2018 19:19:45 +0300 Subject: [PATCH] minor bugfix... Signed-off-by: Alex A. Naanou --- diff.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diff.js b/diff.js index b2cd56c..62c7320 100644 --- a/diff.js +++ b/diff.js @@ -348,10 +348,10 @@ var NUMBER = module.NUMBER = makeCIPattern('NUMBER', function(obj, cmp){ - // XXX do the .value test.... return obj === NUMBER || (typeof(obj) == typeof(123) - && (this.value.length == 1 ? + && (this.value.length == 1 + && typeof(this.value[0]) == typeof(123)? this.value[0] == obj // min/max... : this.value.length == 2 ?