[webvtt] Handle premature EOF

Closes #2867, closes #5600
Authored by: flashdagger
pull/5609/head
Marcel 2 years ago committed by pukkandan
parent 02b2f9fa7d
commit f352a09778
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39

@ -93,7 +93,7 @@ _REGEX_TS = re.compile(r'''(?x)
([0-9]{3})?
''')
_REGEX_EOF = re.compile(r'\Z')
_REGEX_NL = re.compile(r'(?:\r\n|[\r\n])')
_REGEX_NL = re.compile(r'(?:\r\n|[\r\n]|$)')
_REGEX_BLANK = re.compile(r'(?:\r\n|[\r\n])+')

Loading…
Cancel
Save