Skip to content

Commit

Permalink
add phonetic type for iciba
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Dec 20, 2013
1 parent e1971f6 commit ba8b85d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/print.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ exports.iciba = function(data) {
// phonetic symbol
if (data.ps && data.ps.length) {
var ps = '';
data.ps.forEach(function(item) {
firstLine += ("[ " + item + " ] ").magenta;
data.ps.forEach(function(item, i) {
firstLine += (" " + (i === 0 ? "英" : "美") + "[ " + item + " ] ").magenta;
});
firstLine += ps;
}
Expand Down

0 comments on commit ba8b85d

Please sign in to comment.