Explorar el Código

yarn: fix get_latest_version

Simon Legner hace 4 años
padre
commit
e16232728e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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