This commit is contained in:
Christian Mehlmauer
2016-08-08 21:40:36 +02:00
parent 93ab6ee2a0
commit 6e840ca920
3 changed files with 30 additions and 1 deletions

View File

@@ -212,7 +212,12 @@ class WpVersion < WpItem
next if attr_value.nil? || attr_value.empty?
uri = Addressable::URI.parse(attr_value)
begin
uri = Addressable::URI.parse(attr_value)
rescue Addressable::URI::InvalidURIError
next
end
next unless uri.query && uri.query.match(pattern)
version = Regexp.last_match[1].to_s