Skip to content

Commit e162327

Browse files
committed
yarn: fix get_latest_version
1 parent c5dbdbd commit e162327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/docs/scrapers/yarn.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Yarn < UrlScraper
3636
end
3737

3838
def get_latest_version(opts)
39-
get_latest_github_release('yarnpkg', 'berry', opts)
39+
get_latest_github_release('yarnpkg', 'berry', opts)[/[\d.]+/]
4040
end
4141
end
4242
end

0 commit comments

Comments
 (0)