From ddbe6c18022db1df64ff2128e809fe97600e310f Mon Sep 17 00:00:00 2001 From: TacoGS Date: Wed, 3 Jul 2024 23:34:48 -0300 Subject: [PATCH] NOISSUE: add pastee.dev detection for logs --- apps/discord-cat/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/discord-cat/src/main.rs b/apps/discord-cat/src/main.rs index a885281..e39d908 100644 --- a/apps/discord-cat/src/main.rs +++ b/apps/discord-cat/src/main.rs @@ -98,7 +98,7 @@ impl EventHandler for Handler { } lazy_static! { - static ref PASTEE_REGEX: Regex = Regex::new(r"https:/{2}paste.ee/p/[^\s/]+").unwrap(); + static ref PASTEE_REGEX: Regex = Regex::new(r"https:/{2}(paste|pastee).(ee|dev)/p/[^\s/]+").unwrap(); } if let Some(link) = PASTEE_REGEX.find(&msg.content) {