Revert "Case-insensitive URL match via suitable()"
This reverts commit cd381738a616d0de907c52de7c1f510c73a74f50. dstftw commented in #10854 that he thinks this is the wrong way to go.
This commit is contained in:
parent
cd381738a6
commit
b9ede2fe9e
@ -327,7 +327,7 @@ class InfoExtractor(object):
|
||||
# we have cached the regexp for *this* class, whereas getattr would also
|
||||
# match the superclass
|
||||
if '_VALID_URL_RE' not in cls.__dict__:
|
||||
cls._VALID_URL_RE = re.compile(cls._VALID_URL, flags=re.IGNORECASE)
|
||||
cls._VALID_URL_RE = re.compile(cls._VALID_URL)
|
||||
return cls._VALID_URL_RE.match(url) is not None
|
||||
|
||||
@classmethod
|
||||
|
Loading…
x
Reference in New Issue
Block a user