mirror of
https://github.com/flynx/diff.js.git
synced 2025-10-29 11:00:12 +00:00
minor fixes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
469372fa6f
commit
cf67883981
3
diff.js
3
diff.js
@ -320,6 +320,7 @@ module.STRING =
|
|||||||
makeCIPattern('STRING',
|
makeCIPattern('STRING',
|
||||||
function(obj, cmp){
|
function(obj, cmp){
|
||||||
return obj === STRING
|
return obj === STRING
|
||||||
|
|| (typeof(obj) == typeof('str') && this.value == null)
|
||||||
|| (typeof(obj) == typeof('str')
|
|| (typeof(obj) == typeof('str')
|
||||||
&& (this.value instanceof RegExp ?
|
&& (this.value instanceof RegExp ?
|
||||||
this.value.test(obj)
|
this.value.test(obj)
|
||||||
@ -349,6 +350,7 @@ module.NUMBER =
|
|||||||
makeCIPattern('NUMBER',
|
makeCIPattern('NUMBER',
|
||||||
function(obj, cmp){
|
function(obj, cmp){
|
||||||
return obj === NUMBER
|
return obj === NUMBER
|
||||||
|
|| (typeof(obj) == typeof(123) && this.value == null)
|
||||||
|| (typeof(obj) == typeof(123)
|
|| (typeof(obj) == typeof(123)
|
||||||
&& (this.value.length == 1
|
&& (this.value.length == 1
|
||||||
&& typeof(this.value[0]) == typeof(123)?
|
&& typeof(this.value[0]) == typeof(123)?
|
||||||
@ -625,7 +627,6 @@ object.makeConstructor('OF', Object.assign(new LogicType(), {
|
|||||||
// // if both of the array items are arrays it
|
// // if both of the array items are arrays it
|
||||||
// // means that we are splicing array sections
|
// // means that we are splicing array sections
|
||||||
// // instead of array elements...
|
// // instead of array elements...
|
||||||
// // XXX revise docs...
|
|
||||||
// path: [<key>, ...],
|
// path: [<key>, ...],
|
||||||
//
|
//
|
||||||
// // values in A and B...
|
// // values in A and B...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user