diff --git a/lib/parse.js b/lib/parse.js index 89be7aa..7a0819a 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -81,7 +81,7 @@ var parse = function(text){ } } } else { - if (ps) { arr[i].english[0] = parsed[i+1].substring(ps["index"] + ps[0].length).trim().replace("\/", ""); } + if (ps) { arr[i].english[0] = parsed[i+1].substring(ps["index"] + ps[0].length).trim() } else { arr[i].english[0] = parsed[i+1].replace('\/', ""); } } @@ -122,4 +122,4 @@ dict('飛べねぇ豚はただのブタだ').then(function(result){ -*/ \ No newline at end of file +*/