From 8f7ba0e590d4b61da6bc27ebaa4d07a43498284b Mon Sep 17 00:00:00 2001 From: Gregor Santner Date: Mon, 25 Sep 2023 01:59:09 +0200 Subject: [PATCH] ShareInto: Automatically remove new YouTube tracking parameter si --- .../net/gsantner/markor/activity/DocumentShareIntoFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/net/gsantner/markor/activity/DocumentShareIntoFragment.java b/app/src/main/java/net/gsantner/markor/activity/DocumentShareIntoFragment.java index f3a3268d72..2bfa2ac164 100644 --- a/app/src/main/java/net/gsantner/markor/activity/DocumentShareIntoFragment.java +++ b/app/src/main/java/net/gsantner/markor/activity/DocumentShareIntoFragment.java @@ -415,7 +415,7 @@ private static String formatLink(String text, String link) { text = ""; } - link = link.replaceAll("(?m)(?<=&|\\?)(utm_|source|__mk_|ref|sprefix|crid|partner|promo|ad_sub|gclid|fbclid|msclkid).*?(&|$|\\s|\\))", ""); + link = link.replaceAll("(?m)(?<=&|\\?)(utm_|source|si|__mk_|ref|sprefix|crid|partner|promo|ad_sub|gclid|fbclid|msclkid).*?(&|$|\\s|\\))", ""); formattedLink = String.format("[%s](%s )", text.trim().replace("[", "\\[").replace("]", "\\]").replace("|", "/"),