From 20e66788c2b06c335d96a6b13d5b25f6ebe14668 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Mon, 11 May 2020 12:18:39 +0200 Subject: [PATCH] fix --- README.md | 2 +- lib/snippets/readme/Assets.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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}