History

leaflet: get_npm_version

Simon Legner committed 4 years ago

Commit 5d7e8b91 parent 93ffb391 file · +1 −3Browse files

Showing the changes to lib (1 of 1 file). Show all

Unified · Split

lib/docs/scrapers/leaflet.rb+1−3
@@ -70,9 +70,7 @@ module Docs · 69 unmodified lines
7070 end
7171
7272 def get_latest_version(opts)
73− doc = fetch_doc('https://leafletjs.com/reference-versions.html', opts)
74− link = doc.at_css('.container > ul > li:last-child > a').content
75− link.sub(/[a-zA-Z\s]*/, '')
73+ get_npm_version('leaflet', opts)
7674 end
7775 end
7876 end

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t