|
|
@ -11,7 +11,7 @@ const greentextRegex = /^>((?!>\d+|>>/\w+(/\d*)?|>># |
|
|
|
, spoilerRegex = /\|\|([\s\S]+?)\|\|/gm |
|
|
|
, spoilerRegex = /\|\|([\s\S]+?)\|\|/gm |
|
|
|
, detectedRegex = /(\(\(\(.+?\)\)\))/gm |
|
|
|
, detectedRegex = /(\(\(\(.+?\)\)\))/gm |
|
|
|
, linkRegex = /\[(?<label>[^\[][^\]]*?)\]\((?<url>https?\://[^\s<>\[\]{}|\\^)]+)\)|(?<urlOnly>https?\://[^\s<>\[\]{}|\\^]+)/g |
|
|
|
, linkRegex = /\[(?<label>[^\[][^\]]*?)\]\((?<url>https?\://[^\s<>\[\]{}|\\^)]+)\)|(?<urlOnly>https?\://[^\s<>\[\]{}|\\^]+)/g |
|
|
|
, codeRegex = /(?:(?<language>[a-z+]{1,10})\r?\n)?(?<code>[\s\S]+)/i |
|
|
|
, codeRegex = /(?:(?<language>[a-z+]{1,14})\r?\n)?(?<code>[\s\S]+)/i |
|
|
|
, includeSplitRegex = /(\[code\][\s\S]+?\[\/code\])/gm |
|
|
|
, includeSplitRegex = /(\[code\][\s\S]+?\[\/code\])/gm |
|
|
|
, splitRegex = /\[code\]([\s\S]+?)\[\/code\]/gm |
|
|
|
, splitRegex = /\[code\]([\s\S]+?)\[\/code\]/gm |
|
|
|
, trimNewlineRegex = /^\s*(\r?\n)*|(\r?\n)*$/g |
|
|
|
, trimNewlineRegex = /^\s*(\r?\n)*|(\r?\n)*$/g |
|
|
|