Commit 3d167196 authored by Mindiell's avatar Mindiell
Browse files

#41: Désormais, tous les mots clefs qui commencent par 'utm' sont supprimés

parent 04acfe9b
Pipeline #2059 failed with stages
......@@ -23,7 +23,7 @@ def get_url(message):
if result:
url =
# Removing trackers
url = re.sub("[?&](utm_medium|utm_source|utm_campaign|xtor)=[^&]*", "", url)
url = re.sub("[?&](utm_[a-z]+|xtor)=[^&]*", "", url)
return url
def is_moderator(name):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment