twitter: fix typo in ASSET regex (#3850).

This commit is contained in:
evazion
2018-08-29 15:09:36 -05:00
parent a8ae4d3f36
commit bf19ea3bd1

View File

@@ -1,7 +1,7 @@
module Sources::Strategies
class Twitter < Base
PAGE = %r!\Ahttps?://(?:mobile\.)?twitter\.com!i
ASSET = %r!\A(https?://(?:video|pbs)\.twimg\.com/media/)}!i
ASSET = %r!\A(https?://(?:video|pbs)\.twimg\.com/media/)!i
def self.match?(*urls)
urls.compact.any? { |x| x =~ PAGE || x =~ ASSET}