Trailing whitespace

This commit is contained in:
Ben Welsh 2022-08-10 17:55:32 -03:00 committed by GitHub
parent 42e611088e
commit 099dcca6c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -467,7 +467,7 @@ class TwitterIE(TwitterBaseIE):
title = re.sub(r'\s+(https?://[^ ]+)', '', description)
if len(title) > 40:
trim = 35
# allow up to 10 more characters to find whitespace
# allow up to 10 more characters to find whitespace
m = re.search(r'\s+', title)
if m and m.start() > 10:
trim = m.start() + 1