core/utils/Regex.ts
2021-02-03 22:47:53 +09:00

8 lines
235 B
TypeScript

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