fix: prefix regex

This commit is contained in:
원더 2021-02-02 21:49:34 +09:00
parent d08c3e44e0
commit 3f0105e3f4

View File

@ -2,6 +2,6 @@ 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 })