From dec4d8c986659078198f1bc3ee01d3dac1b9e953 Mon Sep 17 00:00:00 2001 From: pandaninjas <101084582+pandaninjas@users.noreply.github.com> Date: Sun, 6 Nov 2022 11:25:44 -0800 Subject: [PATCH] Improve Pastebin.com detection Signed-off-by: pandaninjas <101084582+pandaninjas@users.noreply.github.com> --- src/logs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logs.ts b/src/logs.ts index 7b19ab3..81a6e17 100644 --- a/src/logs.ts +++ b/src/logs.ts @@ -226,7 +226,7 @@ const providers: LogProvider[] = [ ]; export async function parseLog(s: string): Promise { - if (s.includes('https://pastebin.com/')) { + if (/(https?:\/\/)?pastebin\.com\/(raw\/)?[^/\s]{8}/g.test(s)) { const embed = new EmbedBuilder() .setTitle('pastebin.com detected') .setDescription(