crystal: update get_latest_version

pull/1090/head
Jasper van Merle 5 years ago
parent f47326e787
commit 946fcc28ac

@ -52,8 +52,8 @@ module Docs
end
def get_latest_version(opts)
body = fetch('https://crystal-lang.org/api', opts)
body.scan(/Crystal Docs ([0-9.]+)/)[0][0]
doc = fetch_doc('https://crystal-lang.org/', opts)
doc.at_css('.latest-release').content.scan(/([0-9.]+)/)[0][0]
end
end
end

Loading…
Cancel
Save