lib/whatweb/plugins/mysource-matrix.rb in simple_whatweb-0.1.0 vs lib/whatweb/plugins/mysource-matrix.rb in simple_whatweb-0.2.0
- old
+ new
@@ -39,16 +39,15 @@
if /Powered by <a href="http:\/\/www.squiz.[^>]+>/.match?(target.body)
if /MySource Matrix ([\d\.]+)/.match?(target.body)
version = target.body.scan(/MySource Matrix ([\d\.]+)/)[0][0]
m << { version: version }
end
- end
+ end
# HTML comment
if / Running Squiz MySource v([\d\.]+) \(Matrix\) - http:\/\/matrix.squiz.net\//.match?(target.body)
version = target.body.scan(/ Running Squiz MySource v([\d\.]+) \(Matrix\) - http:\/\/matrix.squiz.net\//)[0][0]
m << { version: version }
end
-
m
end
end