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