From 099dcca6c4216b814644a33b7254e3d45a2e6def Mon Sep 17 00:00:00 2001 From: Ben Welsh Date: Wed, 10 Aug 2022 17:55:32 -0300 Subject: [PATCH] Trailing whitespace --- youtube_dl/extractor/twitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/twitter.py b/youtube_dl/extractor/twitter.py index 73a36bccc..0e882d9ed 100644 --- a/youtube_dl/extractor/twitter.py +++ b/youtube_dl/extractor/twitter.py @@ -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