[devdocsgjs/main: 36/239] yarn: fix get_latest_version




commit e16232728ef21780108a682b8168f5703e7c5119
Author: Simon Legner <Simon Legner gmail com>
Date:   Thu Dec 2 22:42:09 2021 +0100

    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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]