犯了愚蠢小错误,没有计算 secword.split()的长度
This commit is contained in:
parent
20169a56ee
commit
0d1d768a68
2
index.js
2
index.js
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user