From dcbbae460317c814caf4ffdf05f1eb8208b7bae4 Mon Sep 17 00:00:00 2001 From: wenyifan Date: Wed, 6 Sep 2023 10:04:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=90=9C=E7=B4=A2=E9=95=BF?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/background/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/background/api.js b/src/background/api.js index 0cd03e0..6795965 100644 --- a/src/background/api.js +++ b/src/background/api.js @@ -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; }