We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2ef3f3 commit 5fdf204Copy full SHA for 5fdf204
packages/@internationalized/number/src/NumberParser.ts
@@ -195,7 +195,7 @@ class NumberParserImpl {
195
let integerPart: string;
196
let parsedIntegerPart: number;
197
let decimalPart;
198
- if (groupSymbolMatch?.length > 0 && abs.length - groupSymbolMatch.length > this.options.minimumIntegerDigits) {
+ if (groupSymbolMatch && groupSymbolMatch.length > 0 && abs.length - groupSymbolMatch.length > this.options.minimumIntegerDigits) {
199
integerPart = abs.slice(0, abs.indexOf(groupSymbolMatch[groupSymbolMatch.length - 1]));
200
decimalPart = abs.slice(abs.indexOf(groupSymbolMatch[groupSymbolMatch.length - 1]) + 1, abs.length);
201
integerPart = integerPart.replace(GROUPING_SYMBOLS_REGEX, '');
0 commit comments