This commit is contained in:
원더 2021-02-03 10:29:05 +09:00
commit 88d205040b

View File

@ -1,7 +1,7 @@
import urlRegex from 'url-regex' import urlRegex from 'url-regex'
export const ID = /[0-9]{17,}/ export const ID = /^[0-9]{17,}$/
export const Vanity = /[A-z|\d|-]+/ export const Vanity = /^[A-z|\d|-]+$/
export const Prefix = /^[^\s]/ export const Prefix = /^[^\s]$/
export const HTTPProtocol = /^https?:\/\/.*?/ export const HTTPProtocol = /^https?:\/\/.*?/
export const Url = urlRegex({ strict: true }) export const Url = urlRegex({ strict: true })