File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/@internationalized/number/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const CURRENCY_SIGN_REGEX = new RegExp('^.*\\(.*\\).*$');
2626const NUMBERING_SYSTEMS = [ 'latn' , 'arab' , 'hanidec' ] ;
2727// eslint-disable-next-line no-irregular-whitespace
2828const GROUPING_SYMBOLS_REGEX = / [ , ٬ . ] / gu;
29- const NUMERALS_REGEX = / [ 0 1 2 3 4 5 6 7 8 9 ] | [ ٠ ١ ٬ ٢ ٣ ٤ ٬ ٥ ٦ ٧ ٬ ٨ ٩ ] | [ 〇 一 , 二 三 四 , 五 六 七 , 八 九 ] / gu;
29+ const NUMERALS_REGEX = / [ 0 1 2 3 4 5 6 7 8 9 ] | [ ٠ ١ ٢ ٣ ٤ ٥ ٦ ٧ ٨ ٩ ] | [ 〇 一 二 三 四 五 六 七 八 九 ] / gu;
3030
3131/**
3232 * A NumberParser can be used to perform locale-aware parsing of numbers from Unicode strings,
@@ -194,7 +194,7 @@ class NumberParserImpl {
194194 let groupSymbolMatch = abs . match ( GROUPING_SYMBOLS_REGEX ) ;
195195 let integerPart : string ;
196196 let parsedIntegerPart : number ;
197- let decimalPart ;
197+ let decimalPart : string ;
198198 if ( groupSymbolMatch && groupSymbolMatch . length > 0 && abs . length - groupSymbolMatch . length > this . options . minimumIntegerDigits ) {
199199 integerPart = abs . slice ( 0 , abs . indexOf ( groupSymbolMatch [ groupSymbolMatch . length - 1 ] ) ) ;
200200 decimalPart = abs . slice ( abs . indexOf ( groupSymbolMatch [ groupSymbolMatch . length - 1 ] ) + 1 , abs . length ) ;
You can’t perform that action at this time.
0 commit comments