From 02444cfacbd4919bae60b21fd6cea01250c23848 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Tue, 27 Sep 2022 21:47:51 +0200 Subject: [PATCH] puppeteer: get_npm_version --- lib/docs/scrapers/puppeteer.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/docs/scrapers/puppeteer.rb b/lib/docs/scrapers/puppeteer.rb index e2214568..357e65f2 100644 --- a/lib/docs/scrapers/puppeteer.rb +++ b/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