flowboard-react 0.6.1 → 0.6.2

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.
@@ -91,7 +91,15 @@ export function parseDimension(
91
91
  return value;
92
92
  }
93
93
  if (typeof value === 'string') {
94
- if (value.toLowerCase() === 'infinity') return Number.POSITIVE_INFINITY;
94
+ const normalized = value.trim().toLowerCase();
95
+ if (
96
+ normalized === 'infinity' ||
97
+ normalized === 'infinite' ||
98
+ normalized === 'double.infinity' ||
99
+ normalized === '+infinity'
100
+ ) {
101
+ return Number.POSITIVE_INFINITY;
102
+ }
95
103
  const numeric = Number(value);
96
104
  if (!Number.isNaN(numeric)) {
97
105
  if (zeroIsNull && numeric === 0) return undefined;