diff --git a/utils/Regex.ts b/utils/Regex.ts index c43f0d1..ad29baa 100644 --- a/utils/Regex.ts +++ b/utils/Regex.ts @@ -5,7 +5,7 @@ * @returns Result of the test */ export function isDigit(str: string) { - return RegExp(/^\d{1}$/g).test(str) + return RegExp(/^\d$/g).test(str) } /**