Skip to content

Commit

Permalink
fix: encode the percent sign in url
Browse files Browse the repository at this point in the history
Noticed this was returning a 400 because the percent sign is not encoded. This should fix the request.
  • Loading branch information
benrthiele-monsanto authored and tlvince committed Dec 1, 2017
1 parent 9f7c849 commit ba9fd92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const getBadge = report => {
const coverage = report.total.statements.pct
const colour = getColour(coverage)

return `https://img.shields.io/badge/Coverage-${coverage}%-${colour}.svg`
return `https://img.shields.io/badge/Coverage-${coverage}${encodeURI('%')}-${colour}.svg`
}

const download = (url, cb) => {
Expand Down

0 comments on commit ba9fd92

Please sign in to comment.