Skip to content

Commit f9e31a6

Browse files
authored
Merge pull request #349 from toolforge/fix/simplify-title-rules
Do not disallow question marks and other chars in URLs
2 parents e99b06d + 27c7d20 commit f9e31a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

video2commons/frontend/urlextract.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,8 @@ def get_emoji_regexp():
465465
),
466466
"replace": "",
467467
},
468-
# everything that wasn't covered yet
469-
{"pattern": re.compile(r"[|#+?:/\\\u0000-\u001f\u007f]"), "replace": "-"},
468+
# Pipes and backslashes
469+
{"pattern": re.compile(r"[|\\]"), "replace": "-"},
470470
# titleblacklist-custom-double-apostrophe
471471
{"pattern": re.compile(r"'{2,}"), "replace": '"'},
472472
]

0 commit comments

Comments
 (0)