strip sanitized text

master
Aevann1 2022-07-02 12:12:52 +02:00
parent a37e6cc50f
commit 6ec0d25034
1 changed files with 2 additions and 2 deletions

View File

@ -346,7 +346,7 @@ def sanitize(sanitized, edit=False):
signal.alarm(0)
return sanitized
return sanitized.strip()
@ -392,7 +392,7 @@ def filter_emojis_only(title, edit=False, graceful=False):
signal.alarm(0)
if len(title) > 1500 and not graceful: abort(400)
else: return title.replace('\n','')
else: return title.replace('\n','').strip()
def normalize_url(url):
url = reddit_domain_regex.sub(r'\1https://old.reddit.com/r/', url)