Ver código fonte

yarn: fix get_latest_version

Simon Legner 4 anos atrás
pai
commit
e16232728e
1 arquivos alterados com 1 adições e 1 exclusões
  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