From e16232728ef21780108a682b8168f5703e7c5119 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Thu, 2 Dec 2021 22:42:09 +0100 Subject: [PATCH] yarn: fix get_latest_version --- lib/docs/scrapers/yarn.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/scrapers/yarn.rb b/lib/docs/scrapers/yarn.rb index 12b44f5e..8cc49260 100644 --- a/lib/docs/scrapers/yarn.rb +++ b/lib/docs/scrapers/yarn.rb @@ -36,7 +36,7 @@ module Docs end def get_latest_version(opts) - get_latest_github_release('yarnpkg', 'berry', opts) + get_latest_github_release('yarnpkg', 'berry', opts)[/[\d.]+/] end end end