From 74c5410f70d6e1d2ee38d78cd43f322eaed41cc1 Mon Sep 17 00:00:00 2001 From: Mary Date: Wed, 3 Feb 2021 00:49:35 +0900 Subject: [PATCH] Update Regex.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 시켜서 하긴 했다만 커밋컨벤션 지키라곤 안함 --- utils/Regex.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/Regex.ts b/utils/Regex.ts index b118e44..928cc7d 100644 --- a/utils/Regex.ts +++ b/utils/Regex.ts @@ -1,7 +1,7 @@ import urlRegex from 'url-regex' -export const ID = /[0-9]{17,}/ -export const Vanity = /[A-z|\d|-]+/ -export const Prefix = /^[^\s]/ +export const ID = /^[0-9]{17,}$/ +export const Vanity = /^[A-z|\d|-]+$/ +export const Prefix = /^[^\s]$/ export const HTTPProtocol = /^https?:\/\/.*?/ -export const Url = urlRegex({ strict: true }) \ No newline at end of file +export const Url = urlRegex({ strict: true })