1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 12:42:44 +01:00

mention regex

This commit is contained in:
Flam3rboy 2021-08-17 22:41:38 +02:00
parent ec45de15ab
commit e00651dc2f
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
export const DOUBLE_WHITE_SPACE = /\s\s+/g;
export const SPECIAL_CHAR = /[@#`:\r\n\t\f\v\p{C}]/gu;
export const CHANNEL_MENTION = /<#(\d+)>/g;
export const USER_MENTION = /<@!?(\d+)>/g;
export const ROLE_MENTION = /<@&(\d+)>/g;
export const EVERYONE_MENTION = /@everyone/g;
export const HERE_MENTION = /@here/g;

View File

@ -1,3 +1,4 @@
export * from "./Regex";
export * from "./String";
export * from "./BitField";
export * from "./Intents";