Fix build.js some more

This commit is contained in:
Angelos Chalaris
2017-11-30 19:16:34 +02:00
parent d01621c8c6
commit 61c3262102
3 changed files with 3 additions and 3 deletions

View File

@ -9,8 +9,8 @@
## Contents
* [Even or odd number](#even-or-odd-number)
* [Greatest common divisor gcd](#greatest-common-divisor-gcd)
* [RGB to hexadecimal](#RGB-to-hexadecimal)
* [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)

View File

@ -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].slice(0,snippet[0].length-3)})\n`
output += `* [${snippet[0][0].toUpperCase() + snippet[0].replace(/-/g,' ').slice(1,snippet[0].length-3)}](#${snippet[0].slice(0,snippet[0].length-3).replace(/\(/g,'').replace(/\)/g,'').toLowerCase()})\n`
output += '\n';
for(var snippet of Object.entries(snippets))
output += `${snippet[1]+'\n'}`;