app/finders/plugin_version/readme.rb in wpscan-3.8.19 vs app/finders/plugin_version/readme.rb in wpscan-3.8.20
- old
+ new
@@ -63,10 +63,10 @@
return if extracted_versions.nil? || extracted_versions.empty?
extracted_versions.flatten!
# must contain at least one number
- extracted_versions = extracted_versions.select { |x| x =~ /[0-9]+/ }
+ extracted_versions = extracted_versions.grep(/[0-9]+/)
sorted = extracted_versions.sort do |x, y|
Gem::Version.new(x) <=> Gem::Version.new(y)
rescue StandardError
0