From 4fdcfb016b3b8ad65ea88062b346afbd34f60ca0 Mon Sep 17 00:00:00 2001 From: R0flcopt3r <12752060+R0flcopt3r@users.noreply.github.com> Date: Sat, 9 Oct 2021 16:16:49 +0200 Subject: strip www. --- src/hooks/url.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/url.rs b/src/hooks/url.rs index 7b8a188..68caea2 100644 --- a/src/hooks/url.rs +++ b/src/hooks/url.rs @@ -14,7 +14,7 @@ pub fn url_parser(msg: &str) -> Vec { url_regex .find_iter(msg) - .map(|u| u.as_str().to_string().replace("www.", "https://www.")) + .map(|u| u.as_str().to_string().replace("www.", "https://")) .collect::>() } -- cgit v1.2.3