@leankylin-sheet/formula-parser 5.2.9 → 5.2.11
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 -0
- package/dist/index.js +3 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -329,6 +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
|
+
if (exp1 === 0 || epx2 === 0) {
|
|
333
|
+
return (exp1 || 0) === (exp2 || 0);
|
|
334
|
+
}
|
|
332
335
|
return tsValue(exp1) === tsValue(exp2);
|
|
333
336
|
}
|
|
334
337
|
}
|
package/dist/index.js
CHANGED
|
@@ -357,6 +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
|
+
if (exp1 === 0 || epx2 === 0) {
|
|
361
|
+
return (exp1 || 0) === (exp2 || 0);
|
|
362
|
+
}
|
|
360
363
|
return tsValue(exp1) === tsValue(exp2);
|
|
361
364
|
}
|
|
362
365
|
}
|