Explorar o código

Fix Erlang get_latest_version implementation

Jasper van Merle %!s(int64=6) %!d(string=hai) anos
pai
achega
0315c88f81
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/docs/scrapers/erlang.rb

+ 1 - 1
lib/docs/scrapers/erlang.rb

@@ -58,7 +58,7 @@ module Docs
 
     def get_latest_version(options, &block)
       fetch_doc('https://www.erlang.org/downloads', options) do |doc|
-        block.call doc.at_css('.col-lg-3 > ul > li').content.strip
+        block.call doc.at_css('.col-lg-3 > ul > li').content.strip.sub(/OTP /, '')
       end
     end
   end