fix: fixed prefix regex

close: https://github.com/koreanbots/v2-testing/issues/48
This commit is contained in:
원더 2021-02-09 21:51:00 +09:00
parent 2d4bd97af0
commit 781be673bb

View File

@ -2,7 +2,7 @@ import urlRegex from 'url-regex-safe'
export const ID = /^[0-9]{17,}$/ export const ID = /^[0-9]{17,}$/
export const Vanity = /^[A-Za-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 })