From 641a11eabe2660e2aab43c762b75fcef917bdead Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Mon, 22 Apr 2024 13:03:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=A4=E6=96=AD11=E4=BD=8D?= =?UTF-8?q?=E5=88=86=E4=BA=AB=E7=A0=81=E7=9A=84=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/Utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/Utils.ts b/src/common/Utils.ts index 7e5d28f..20aaa56 100644 --- a/src/common/Utils.ts +++ b/src/common/Utils.ts @@ -7,7 +7,7 @@ export const isObjectIdString = (str: string) => { // check if a string is a valid share code // alphabet:'3fBCM8j17XNA9xYun4wmLWep2oHFlhPcgyEJskqOz6GK0UtV5ZRaDSvrTbidQI' export const isValidShareCode = (str: string) => { - let reg = new RegExp(`^[${BASE52_ALPHABET}]{10}$`) + let reg = new RegExp(`^[${BASE52_ALPHABET}]{10, 11}$`) return reg.test(str) }