app/finders/plugin_version/readme.rb in wpscan-3.7.11 vs app/finders/plugin_version/readme.rb in wpscan-3.8.0

- old
+ new

@@ -66,14 +66,12 @@ extracted_versions.flatten! # must contain at least one number extracted_versions = extracted_versions.select { |x| x =~ /[0-9]+/ } sorted = extracted_versions.sort do |x, y| - begin - Gem::Version.new(x) <=> Gem::Version.new(y) - rescue StandardError - 0 - end + Gem::Version.new(x) <=> Gem::Version.new(y) + rescue StandardError + 0 end sorted.last end end