Browse Source

Fix Erlang get_latest_version implementation

Jasper van Merle 6 năm trước cách đây
mục cha
commit
0315c88f81
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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