소스 검색

Fix Erlang get_latest_version implementation

Jasper van Merle 6 년 전
부모
커밋
0315c88f81
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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