dont proceed with sanitizing if blackjack

pull/215/head
Aevann 2023-10-07 18:06:08 +03:00
parent 1bc569e3e5
commit a2503e3a5b
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=False, count_emojis
v = getattr(g, 'v', None)
if blackjack and execute_blackjack(v, None, sanitized, blackjack):
sanitized = 'g'
return '<p>g</p>'
if '```' not in sanitized and '<pre>' not in sanitized:
sanitized = linefeeds_regex.sub(r'\1\n\n\2', sanitized)