mirror of
https://github.com/flynx/diff.js.git
synced 2025-10-28 10:30:09 +00:00
minor bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
0d3e7a602d
commit
8d7a8693b9
4
diff.js
4
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 ?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user