diff options
| author | R0flcopt3r <12752060+R0flcopt3r@users.noreply.github.com> | 2021-10-09 16:16:49 +0200 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2021-10-10 16:21:55 +0200 |
| commit | 4fdcfb016b3b8ad65ea88062b346afbd34f60ca0 (patch) | |
| tree | fa054e7af8f6bf31755364bf2f80b872c7032097 /src | |
| parent | for running test shit (diff) | |
strip www.
Diffstat (limited to 'src')
| -rw-r--r-- | src/hooks/url.rs | 2 |
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>>() } |
