From b27f765d733bb533c0bd32475ef6df88161e5f1a Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Mon, 22 Apr 2024 13:24:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A3=80=E6=9F=A5=E9=82=80?= =?UTF-8?q?=E8=AF=B7=E7=A0=81=E7=9A=84=E6=AD=A3=E5=88=99?= 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 20aaa56..961313d 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, 11}$`) + let reg = new RegExp(`^[${BASE52_ALPHABET}]{10,11}$`) return reg.test(str) }