@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.js CHANGED
@@ -2194,6 +2194,7 @@ const isDeepCloseTo = (a, b, options = { relativeDiff: DEFAULT_MAX_RELATIVE_DIFF
2194
2194
  return aKeys.every((key) => isDeepCloseTo(a[key], b[key], options));
2195
2195
  }
2196
2196
  if (Number.isNaN(a) && Number.isNaN(b) || a === "" && b === "") return true;
2197
+ if (typeof a === "string" && typeof b === "string" && a.startsWith("|") && b.startsWith("|")) return true;
2197
2198
  if (typeof a === "number" && typeof b === "number" || isValueWithUnit(a) && isValueWithUnit(b) || isValidNum(a) && isValidNum(b)) return isCloseTo(a, b, options);
2198
2199
  return true;
2199
2200
  };