犯了愚蠢小错误,没有计算 secword.split()的长度

This commit is contained in:
陆柯 2020-02-23 11:22:10 +08:00
parent 20169a56ee
commit 0d1d768a68

View File

@ -67,7 +67,7 @@ module.exports = {
} }
, ,
isSecword(secword){ isSecword(secword){
if (typeof secword==='string' && 12===secword.split(/ +/)) if (typeof secword==='string' && 12===secword.split(/ +/).length)
return Secword.isValid(secword) return Secword.isValid(secword)
else else
return false return false