mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
12 lines
454 B
TypeScript
12 lines
454 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 })
|
|
|
|
export const Emoji = '(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])'
|
|
export const Heading = '<h\\d id="(.+?)">(.*?)<\\/h(\\d)>'
|
|
export const EmojiSyntax = ':(\\w+):'
|