Parcourir la source

yarn: fix get_latest_version

Simon Legner il y a 4 ans
Parent
commit
e16232728e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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