From 0168174012664e656c4e7381eb3b3a5c23eb44db Mon Sep 17 00:00:00 2001 From: yutent Date: Fri, 11 Mar 2022 19:09:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A02=E4=B8=AA=E7=94=9F=E5=83=BB?= =?UTF-8?q?=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/table.txt | 2 ++ js/index.js | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/data/table.txt b/data/table.txt index 42193e8..27837d2 100644 --- a/data/table.txt +++ b/data/table.txt @@ -1545,6 +1545,7 @@ 吇 kbg 合 wgk wgkf 吉 fk fkf +𠮷 fk fkf 吊 kmh kmhj 吋 kfy 同 m mg mgk mgkd @@ -21002,3 +21003,4 @@ 﨧 qftb 﨨 qfuf 﨩 bwvm +㞌 nbd diff --git a/js/index.js b/js/index.js index a21e892..ff2bbf1 100644 --- a/js/index.js +++ b/js/index.js @@ -88,14 +88,14 @@ Anot({ if (reverse) { text = text.toUpperCase() // 反查时, 直接替换结果 - if (res18030 && res18030.length) { + if (res18030 && res18030[0]) { res = res18030 } if (res[0]) { res = `【 ${text} 】👉\t${res[0] .map( t => - `${t}(${(res18030 && res18030.length ? WB_TABLE_18030.get(t) : WB_TABLE.get(t)) + `${t}(${(res18030 && res18030[0] ? WB_TABLE_18030.get(t) : WB_TABLE.get(t)) .join('、') .toUpperCase()})` ) @@ -104,7 +104,7 @@ Anot({ res = `【 ${text} 】👉\t无结果, 请检查你的输入是否正确, 如果确认无误, 可以反馈缺失字库。` } } else { - if (res18030 && res18030.length) { + if (res18030) { res18030.forEach((it, i) => { if (it) { res[i] = it