Skip to content

Commit 007890b

Browse files
doundDavid Underhill
authored andcommitted
support marking pinyin where tones may already be marked
1 parent 5fb19a1 commit 007890b

File tree

4 files changed

+5419
-639
lines changed

4 files changed

+5419
-639
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function convert(text, options) {
4545
* @returns {String} Word with marked tone
4646
*/
4747
function mark(word, toneNumber) {
48-
if (toneNumber === 5) {
48+
if (toneNumber === 5 || toneNumber === null) {
4949
return word
5050
}
5151

0 commit comments

Comments
 (0)