remove underscore_in_link_regex

pull/110/head
Aevann 2023-02-02 18:53:35 +02:00
parent 7d4038b1c6
commit 59ee320584
2 changed files with 0 additions and 4 deletions

View File

@ -195,6 +195,4 @@ reason_regex = re.compile('(/(post|comment)/[0-9]+)', flags=re.A)
discord_username_regex = re.compile("(\s|^|>).{2,32}#[0-9]{4}(?=[^0-9]|$)", flags=re.A)
underscore_in_link_regex = regex.compile("(?<=https:\/\/[^\s)]+)_", flags=regex.A)
numbered_list_regex = re.compile('((\s|^)[0-9]+)\. ', flags=re.A)

View File

@ -296,8 +296,6 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=True, count_marseys
if FEATURES['MARKUP_COMMANDS']:
sanitized = command_regex.sub(command_regex_matcher, sanitized)
sanitized = underscore_in_link_regex.sub(r'\_', sanitized)
sanitized = numbered_list_regex.sub(r'\1\. ', sanitized)
sanitized = markdown(sanitized)