Update value.ts
This commit is contained in:
parent
cabdc15253
commit
f630d7934a
|
|
@ -141,7 +141,7 @@ export function isEqual(a: Value, b: Value): boolean {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
case 'regex': {
|
case 'regex': {
|
||||||
if (!(b instanceof RegExp)) return false
|
if (!(b.value instanceof RegExp)) return false
|
||||||
return String(a.value) === String(b.value)
|
return String(a.value) === String(b.value)
|
||||||
}
|
}
|
||||||
case 'function':
|
case 'function':
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user