GuangchuangYu/badger

Wrong URL returned by `currentGitHubRef ` in case of multiple github URL

DDorch opened this issue · 1 comments

URL packages usually combines github.com and github.io urls like for this one: https://github.com/cran/ropenblas/blob/dd74d5b3f23a57c63a3b2520d3dc81f1f9554bdf/DESCRIPTION#L15

In that case, the URL returned by currentGitHubRef is wrong:

> badger::badge_devel(color = "blue")
[1] "[![](https://img.shields.io/badge/devel%20version-0.2.6-blue.svg)](https://github.com/https://ddorch.github.io/Rthingsboard/)"

fixed in v0.2.0