Skip to content

Commit 0315c88

Browse files
committed
Fix Erlang get_latest_version implementation
1 parent de6e42f commit 0315c88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/docs/scrapers/erlang.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Erlang < FileScraper
5858

5959
def get_latest_version(options, &block)
6060
fetch_doc('https://www.erlang.org/downloads', options) do |doc|
61-
block.call doc.at_css('.col-lg-3 > ul > li').content.strip
61+
block.call doc.at_css('.col-lg-3 > ul > li').content.strip.sub(/OTP /, '')
6262
end
6363
end
6464
end

0 commit comments

Comments
 (0)