优化搜索长度
This commit is contained in:
1 parent
954af8537b
commit
dcbbae4603
1 file changed
+2
-2
@@ -285,7 +285,7 @@ module.exports = async ({
|
|||||||
if(typeof callback != 'function')
|
if(typeof callback != 'function')
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(!text || text.length <= 2) {
|
if(!text || text.length < 2) {
|
||||||
callback(undefined);
|
callback(undefined);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -407,7 +407,7 @@ module.exports = async ({
|
|||||||
if(typeof callback != 'function')
|
if(typeof callback != 'function')
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(!text || text.length <= 2) {
|
if(!text || text.length < 2) {
|
||||||
callback(undefined);
|
callback(undefined);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user