mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-04-13 15:27:16 +03:00
Add regular expressions for formatting to scr.discord.js
This commit is contained in:
parent
35aa3c2724
commit
81a56e4da5
@ -1,4 +1,16 @@
|
||||
var DISCORD = (function(){
|
||||
var REGEX = {
|
||||
formatBold: /\*\*([\s\S]+?)\*\*(?!\*)/g,
|
||||
formatItalic: /\/\/([\s\S]+?)\/\/(?!\/)/g,
|
||||
formatUnderline: /__([\s\S]+?)__(?!_)/g,
|
||||
formatStrike: /~~([\s\S]+?)~~(?!~)/g,
|
||||
formatCodeInline: /(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/g,
|
||||
formatCodeBlock: /```(([A-z0-9\-]+?)\n+)?\n*([^]+?)\n*```/g,
|
||||
metionRole: /<@&(\d+?)>/g,
|
||||
metionUser: /<@!?(\d+?)>/g,
|
||||
mentionChannel: /<#(\d+?)>/g
|
||||
};
|
||||
|
||||
var templateChannelServer;
|
||||
var templateChannelPrivate;
|
||||
var templateMessage;
|
||||
|
Loading…
x
Reference in New Issue
Block a user