diff --git a/README.md b/README.md index 9e16b89..7d04cd3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # @sapphirecode/snippeteer -[![Package quality](https://packagequality.com/shield/@sapphirecode/snippeteer.svg)](https://packagequality.com/#?package=@sapphirecode/snippeteer) +[![Package quality](https://packagequality.com/badge/%40sapphirecode%2Fsnippeteer.svg)](https://packagequality.com/#?package=%40sapphirecode%2Fsnippeteer) > macros for setting up projects or project parts diff --git a/lib/snippets/readme/Assets.ts b/lib/snippets/readme/Assets.ts index ff1e03b..6f1aa57 100644 --- a/lib/snippets/readme/Assets.ts +++ b/lib/snippets/readme/Assets.ts @@ -6,9 +6,10 @@ export function get_readme ( license: string, author: string ): string { + const uri = encodeURIComponent (software); return `# ${software} -[![Package quality](https://packagequality.com/shield/${software}.svg)](https://packagequality.com/#?package=${software}) +[![Package quality](https://packagequality.com/shield/${uri}.svg)](https://packagequality.com/#?package=${uri}) > ${description}