From d43c3d1396269f8d5b92704a9cec86405db90a4c Mon Sep 17 00:00:00 2001 From: Trunks8257 <49949593+Trunks8257@users.noreply.github.com> Date: Sat, 19 Sep 2020 18:19:09 +0200 Subject: [PATCH] Update parse.js fixed the / issue --- lib/parse.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +*/