Skip to content

Commit

Permalink
Merge branch 'hotfix/zh-cn-ten'
Browse files Browse the repository at this point in the history
  • Loading branch information
lisez committed Jun 22, 2019
2 parents 39246e5 + 4ad18e6 commit b97bd31
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ assert.equal(test9, '下降壹佰貳拾參');

// Support Simplified/Traditional Chinese, default: `zh-tw`
const test10 = converter('-123', { lang: 'zh-cn' });
assert.equal(test10, '负壹佰贰十参');
assert.equal(test10, '负壹佰贰拾参');

```

Expand Down
2 changes: 1 addition & 1 deletion demo/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ assert.equal(test9, '下降壹佰貳拾參');

// Support Simplified/Traditional Chinese, default: `zh-tw`
const test10 = converter('-123', { lang: 'zh-cn' });
assert.equal(test10, '负壹佰贰十参');
assert.equal(test10, '负壹佰贰拾参');
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lib-arabic-chinese",
"version": "1.3.0",
"version": "1.3.1",
"description": "A library for converting from Arabic numbers to Chinese numbers",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/lang/Digit/zh-cn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const mapping: TDigitMapping = {
lowerCaseMapping: ['零', '一', '二', '三', '四', '五', '六', '七', '八', '九'],

upperCaseUnitMapping: {
'1': '',
'1': '',
'2': '佰',
'3': '仟'
},
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/zhCharsMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const zhCharMapping: { [char: string]: string } = {
: '八',
: '九',
// upper case unit
: '',
: '',
: '佰',
: '仟',
// lower case unit
Expand Down

0 comments on commit b97bd31

Please sign in to comment.