aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorR0flcopt3r <12752060+R0flcopt3r@users.noreply.github.com>2021-10-09 16:16:49 +0200
committerMax Audron <audron@cocaine.farm>2021-10-10 16:21:55 +0200
commit4fdcfb016b3b8ad65ea88062b346afbd34f60ca0 (patch)
treefa054e7af8f6bf31755364bf2f80b872c7032097
parentfor running test shit (diff)
strip www.
-rw-r--r--src/hooks/url.rs2
1 files changed, 1 insertions, 1 deletions
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<String> {
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::<Vec<String>>()
}