From 4d1a570645fdd06dcd8606fcb3e53d2aff54ab1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=AB=E8=B0=B7=E5=89=91=E4=BB=99?= Date: Wed, 22 Jan 2020 13:06:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8C=9C=E6=B5=8B=E5=8F=AF=E8=83=BD=E4=BC=98?= =?UTF-8?q?=E5=8C=96=EF=BC=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.js b/script.js index ca71cd92..28ea136b 100644 --- a/script.js +++ b/script.js @@ -539,7 +539,7 @@ function initialize() { showSearch(Cards.filter(card=>{ return splitAltName.some(alt=>{ - return card.altName.indexOf(alt)>=0; + return alt.length > 0 && card.altName.indexOf(alt)>=0; }); })); }