lib/video_info/providers/vimeo.rb in video_info-2.6.0 vs lib/video_info/providers/vimeo.rb in video_info-2.6.1
- old
+ new
@@ -13,11 +13,11 @@
super(url, options)
end
def self.usable?(url)
- url =~ /(vimeo\.com\/(?!album|hubnut\/album).*)/
+ url =~ %r{(vimeo\.com\/(?!album|hubnut\/album).*)}
end
def provider
'Vimeo'
end
@@ -27,15 +27,15 @@
end
private
def _url_regex
- /.*\.com&&
+ %r{.*\.com&&
|\/(?:(?:groups\/[^\/]+\/videos\/)
|(?:ondemand|channels)(?:(?:\/less\/)
|(?:user[0-9]+\/review\/)?([0-9]+).*
|(?:\/\w*\/))|(?:video\/))?([0-9]+).*$
- /x
+ }x
end
def _default_iframe_attributes
{}
end