Skip to content

Commit

Permalink
changed pinyin format, object => array
Browse files Browse the repository at this point in the history
  • Loading branch information
chunfat-setsail committed Sep 22, 2016
1 parent 7f6f9b4 commit 67a53cf
Show file tree
Hide file tree
Showing 6 changed files with 75,422 additions and 24,990 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

/char2pinyin.json
/dict/char2pinyin.json
.idea/
/test/
2 changes: 1 addition & 1 deletion cantonese2pinyin.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function getPinyin (c) {
var result = (!isNaN(c) ? codePointDict[c] : cantCharDict[c]);
return Array.isArray(result) ? result.map(function (child) {
return child.pinyin
}) : null;
})[0] : null;
}

function getCodePoint (c) {
Expand Down
Loading

0 comments on commit 67a53cf

Please sign in to comment.