Skip to content

Commit

Permalink
Fix travis error
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnychhsu committed Apr 15, 2019
1 parent 4d09a76 commit 99f1200
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/i18n/traditional-chinese.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ var keys = [
["powerpost","焦點"],["capital weather gang","首都 天氣"],["morning mix","晨間 新聞"],["wonkblog"],["world news","世界 新聞"],["us business","美國 商業"],["markets","市場"],
["technology","科技"],["cat","貓"],["dog","狗"],["horse","馬"],["snail","蝸牛"],["year","年"],["yoda","尤達"],["shakespeare","莎士比亞"],["vulcan","瓦肯人"],["klingon","克林貢"],
["viral","傳閱"],["rising","上升"],["uber_black","尊榮"]
]
];

function postprocessSynthetic(sentence, program) {
// We need a dummy postprocessSynthetic() here
keys.forEach(function(key) {
var re = new RegExp("\\b" + key[0] + "\\b", "g");
if(sentence.match(re)){
sentence = sentence.replace(key[0], key[1])
}
if(sentence.match(re))
sentence = sentence.replace(key[0], key[1]);
});
return sentence;
}
Expand Down

0 comments on commit 99f1200

Please sign in to comment.