From 8f76166fde4c99e8d527a1a98a0870b4687d5d52 Mon Sep 17 00:00:00 2001 From: Guillermo Roche Date: Thu, 3 Oct 2024 20:55:27 +0200 Subject: [PATCH] fix replace in x --- src/rewrite_links/links_to_rewrite.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rewrite_links/links_to_rewrite.rs b/src/rewrite_links/links_to_rewrite.rs index 735c2ab..6a6d9f7 100644 --- a/src/rewrite_links/links_to_rewrite.rs +++ b/src/rewrite_links/links_to_rewrite.rs @@ -5,7 +5,8 @@ use curl::easy::Easy; static URLS: phf::Map<&'static str, &'static str> = phf_map! { "www.tiktok.com" => "vxtiktok.com", "vm.tiktok.com" => "vxtiktok.com", - "x.com" => "fxtwitter.com", + "https://x.com" => "https://fxtwitter.com", + "https://fxtwitter.com" => "https://fxtwitter.com", }; pub fn filter_string(url: String, domain: String) -> Option {