Skip to content

Commit f2873fa

Browse files
update
1 parent 4e61e11 commit f2873fa

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

src/lib/definitions.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,6 +1781,9 @@ function getFHPaddingEntries(index)
17811781
useLocaleNumeralDefinition('т', '"ru"', Infinity, 11, LOCALE_NUMERALS_IE11_WIN7);
17821782
useLocaleNumeralDefinition('ь', '"ru"', Infinity, 12, LOCALE_NUMERALS_IE11_WIN7);
17831783
useLocaleNumeralDefinition('正', '"zh"', Infinity, 0, LOCALE_NUMERALS_IE11_WIN7_8);
1784+
useLocaleNumeralDefinition('大', '"zh"', Infinity, 3, LOCALE_NUMERALS_IE11_WIN7_8);
1785+
useLocaleNumeralDefinition('无', '"zh-cn"', Infinity, 1, LOCALE_NUMERALS_IE11_WIN7_8);
1786+
useLocaleNumeralDefinition('穷', '"zh-cn"', Infinity, 2, LOCALE_NUMERALS_IE11_WIN7_8);
17841787
useLocaleNumeralDefinition('字', '"zh-cn"', NaN, 2, LOCALE_NUMERALS_IE11_WIN7_8);
17851788
}
17861789
)();

src/lib/features.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,9 @@ var featureInfos =
351351
checkLocaleNumeral('ja', Infinity, /^./) &&
352352
checkLocaleNumeral('ja', NaN, /^...../) &&
353353
checkLocaleNumeral('lt', Infinity, /^.......ė/) &&
354-
checkLocaleNumeral('pl', Infinity, /^.............ś/) &&
355-
checkLocaleNumeral('zh', Infinity, /^/) &&
354+
checkLocaleNumeral('pl', Infinity, /^.......ń.....ść/) &&
355+
checkLocaleNumeral('zh', Infinity, /^../) &&
356+
checkLocaleNumeral('zh', Infinity, /^./) &&
356357
checkLocaleNumeral('zh-cn', NaN, /^../);
357358
return available;
358359
},

test/helpers/feature-emulation.helpers.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,10 @@
880880
case 'zh-cn':
881881
if (isNaN(number))
882882
returnValue = '非数字';
883+
else if (+this === Infinity)
884+
returnValue = '正无穷大';
885+
else if (+this === -Infinity)
886+
returnValue = '负无穷大';
883887
break;
884888
}
885889
return returnValue;

0 commit comments

Comments
 (0)