From 0d1d768a68aaaf542af018517e40efdd89c4f301 Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Sun, 23 Feb 2020 11:22:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8A=AF=E4=BA=86=E6=84=9A=E8=A0=A2=E5=B0=8F?= =?UTF-8?q?=E9=94=99=E8=AF=AF=EF=BC=8C=E6=B2=A1=E6=9C=89=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=20secword.split()=E7=9A=84=E9=95=BF=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index a831062..2091fdb 100644 --- a/index.js +++ b/index.js @@ -67,7 +67,7 @@ module.exports = { } , isSecword(secword){ - if (typeof secword==='string' && 12===secword.split(/ +/)) + if (typeof secword==='string' && 12===secword.split(/ +/).length) return Secword.isValid(secword) else return false