Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
rpteam
wantzel
Commits
3d167196
Commit
3d167196
authored
Oct 14, 2018
by
Mindiell
Browse files
#41
: Désormais, tous les mots clefs qui commencent par 'utm' sont supprimés
parent
04acfe9b
Pipeline
#2059
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
utils.py
View file @
3d167196
...
...
@@ -23,7 +23,7 @@ def get_url(message):
if
result
:
url
=
result
.
group
(
1
)
# 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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment