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) }