Browse Source

yarn: fix get_latest_version

Simon Legner 4 năm trước cách đây
mục cha
commit
e16232728e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/docs/scrapers/yarn.rb

+ 1 - 1
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