优化搜索长度
This commit is contained in:
parent
954af8537b
commit
dcbbae4603
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user