@oliasoft-open-source/units 5.11.0 → 5.11.1-beta-1
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.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2196,6 +2196,7 @@ const isDeepCloseTo = (a, b, options = { relativeDiff: DEFAULT_MAX_RELATIVE_DIFF
|
|
|
2196
2196
|
return aKeys.every((key) => isDeepCloseTo(a[key], b[key], options));
|
|
2197
2197
|
}
|
|
2198
2198
|
if (Number.isNaN(a) && Number.isNaN(b) || a === "" && b === "") return true;
|
|
2199
|
+
if (typeof a === "string" && typeof b === "string" && a.startsWith("|") && b.startsWith("|")) return true;
|
|
2199
2200
|
if (typeof a === "number" && typeof b === "number" || isValueWithUnit(a) && isValueWithUnit(b) || isValidNum(a) && isValidNum(b)) return isCloseTo(a, b, options);
|
|
2200
2201
|
return true;
|
|
2201
2202
|
};
|