Skip to content

Commit

Permalink
Merge branch 'master' into rework_attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
harshad1 authored Sep 27, 2023
2 parents 43eb15c + 8f7ba0e commit c44a828
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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("|", "/"),
Expand Down

0 comments on commit c44a828

Please sign in to comment.