Unified · Split
| @@ -70,9 +70,7 @@ module Docs · 69 unmodified lines | |||
| 70 | end | 70 | end |
| 71 | 71 | ||
| 72 | def get_latest_version(opts) | 72 | def get_latest_version(opts) |
| 73 | doc = fetch_doc('https://leafletjs.com/reference-versions.html', opts) | 73 | get_npm_version('leaflet', opts) |
| 74 | link = doc.at_css('.container > ul > li:last-child > a').content | ||
| 75 | link.sub(/[a-zA-Z\s]*/, '') | ||
| 76 | end | 74 | end |
| 77 | end | 75 | end |
| 78 | end | 76 | end |