leaflet: get_npm_version

pull/1824/head
Simon Legner 2 years ago
parent 93ffb39064
commit 5d7e8b95d2

@ -70,9 +70,7 @@ module Docs
end end
def get_latest_version(opts) def get_latest_version(opts)
doc = fetch_doc('https://leafletjs.com/reference-versions.html', opts) get_npm_version('leaflet', opts)
link = doc.at_css('.container > ul > li:last-child > a').content
link.sub(/[a-zA-Z\s]*/, '')
end end
end end
end end

Loading…
Cancel
Save