From 109da245a2c7207ce1f74dc05cc8cf2355e28b58 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Thu, 30 Nov 2017 19:14:04 +0200 Subject: [PATCH] Fix builder.js --- README.md | 12 ++++++------ scripts/builder.js | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 9708a6ab6..b5849d517 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,12 @@ ## Contents -* [Even or odd number](even-or-odd-number.md) -* [Greatest common divisor gcd](greatest-common-divisor-gcd.md) -* [RGB to hexadecimal](RGB-to-hexadecimal.md) -* [Sort characters in string alphabetical](sort-characters-in-string-alphabetical.md) -* [Sum of array of numbers](sum-of-array-of-numbers.md) -* [Unique values of array](unique-values-of-array.md) +* [Even or odd number](#even-or-odd-number) +* [Greatest common divisor gcd](#greatest-common-divisor-gcd) +* [RGB to hexadecimal](#RGB-to-hexadecimal) +* [Sort characters in string alphabetical](#sort-characters-in-string-alphabetical) +* [Sum of array of numbers](#sum-of-array-of-numbers) +* [Unique values of array](#unique-values-of-array) ### Even or odd number diff --git a/scripts/builder.js b/scripts/builder.js index 9100db79b..dfa15db0a 100644 --- a/scripts/builder.js +++ b/scripts/builder.js @@ -28,7 +28,7 @@ catch (err){ try { output += `${startPart+'\n'}`; for(var snippet of Object.entries(snippets)) - output += `* [${snippet[0][0].toUpperCase() + snippet[0].replace(/-/g,' ').slice(1,snippet[0].length-3)}](${snippet[0]})\n` + output += `* [${snippet[0][0].toUpperCase() + snippet[0].replace(/-/g,' ').slice(1,snippet[0].length-3)}](#${snippet[0].slice(0,snippet[0].length-3)})\n` output += '\n'; for(var snippet of Object.entries(snippets)) output += `${snippet[1]+'\n'}`;