_VALID_URL regular expressions are not anchored

This commit is contained in:
Pete Johns 2020-04-13 13:23:08 +10:00
parent 5e04505a96
commit fd90cab05a
No known key found for this signature in database
GPG Key ID: F05BBF16907F7671

View File

@ -70,7 +70,7 @@ class SBSIE(InfoExtractor):
class SBSNewsIE(SBSIE): class SBSNewsIE(SBSIE):
_VALID_URL = r'^https?://(?:www\.)?sbs\.com\.au/news/(?P<id>[0-9a-z-]+)$' _VALID_URL = r'https?://(?:www\.)?sbs\.com\.au/news/(?P<id>[0-9a-z-]+)'
_TESTS = [{ _TESTS = [{
'url': 'https://www.sbs.com.au/news/are-the-campaigns-working-voters-speak-out', 'url': 'https://www.sbs.com.au/news/are-the-campaigns-working-voters-speak-out',