1
0
Simon Legner 3 жил өмнө
parent
commit
5d7e8b95d2

+ 1 - 3
lib/docs/scrapers/leaflet.rb

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