fix: regex warning

This commit is contained in:
원더 2021-02-03 10:32:08 +09:00
parent 88d205040b
commit 58447cdd74

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