1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-23 10:52:30 +01:00

mention regex

This commit is contained in:
Flam3rboy 2021-08-17 22:41:38 +02:00
parent 077050b71c
commit a467c86399
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";