Browse Source

puppeteer: get_npm_version

Simon Legner 3 năm trước cách đây
mục cha
commit
02444cfacb
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      lib/docs/scrapers/puppeteer.rb

+ 1 - 2
lib/docs/scrapers/puppeteer.rb

@@ -16,8 +16,7 @@ module Docs
     HTML
 
     def get_latest_version(opts)
-      contents = get_github_file_contents('GoogleChrome', 'puppeteer', 'README.md', opts)
-      contents.scan(/\/v([0-9.]+)\/docs\/api\.md/)[0][0]
+      get_npm_version('puppeteer', opts)
     end
   end
 end