优化搜索长度

This commit is contained in:
wenyifan 2023-09-06 10:04:32 +08:00
parent 954af8537b
commit dcbbae4603

View File

@ -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;
} }