@leankylin-sheet/formula-parser 5.2.10 → 5.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +3 -1
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -329,7 +329,9 @@ function compare(exp1, exp2, type) {
|
|
|
329
329
|
} else if (type === ">=") {
|
|
330
330
|
return tsValue(exp1) >= tsValue(exp2);
|
|
331
331
|
} else if (type === "=") {
|
|
332
|
-
|
|
332
|
+
if (exp1 === 0 || exp2 === 0) {
|
|
333
|
+
return (exp1 || 0) === (exp2 || 0);
|
|
334
|
+
}
|
|
333
335
|
return tsValue(exp1) === tsValue(exp2);
|
|
334
336
|
}
|
|
335
337
|
}
|
package/dist/index.js
CHANGED
|
@@ -357,7 +357,9 @@ function compare(exp1, exp2, type) {
|
|
|
357
357
|
} else if (type === ">=") {
|
|
358
358
|
return tsValue(exp1) >= tsValue(exp2);
|
|
359
359
|
} else if (type === "=") {
|
|
360
|
-
|
|
360
|
+
if (exp1 === 0 || exp2 === 0) {
|
|
361
|
+
return (exp1 || 0) === (exp2 || 0);
|
|
362
|
+
}
|
|
361
363
|
return tsValue(exp1) === tsValue(exp2);
|
|
362
364
|
}
|
|
363
365
|
}
|