Fix builder.js
This commit is contained in:
12
README.md
12
README.md
@ -8,12 +8,12 @@
|
|||||||
|
|
||||||
## Contents
|
## Contents
|
||||||
|
|
||||||
* [Even or odd number](even-or-odd-number.md)
|
* [Even or odd number](#even-or-odd-number)
|
||||||
* [Greatest common divisor gcd](greatest-common-divisor-gcd.md)
|
* [Greatest common divisor gcd](#greatest-common-divisor-gcd)
|
||||||
* [RGB to hexadecimal](RGB-to-hexadecimal.md)
|
* [RGB to hexadecimal](#RGB-to-hexadecimal)
|
||||||
* [Sort characters in string alphabetical](sort-characters-in-string-alphabetical.md)
|
* [Sort characters in string alphabetical](#sort-characters-in-string-alphabetical)
|
||||||
* [Sum of array of numbers](sum-of-array-of-numbers.md)
|
* [Sum of array of numbers](#sum-of-array-of-numbers)
|
||||||
* [Unique values of array](unique-values-of-array.md)
|
* [Unique values of array](#unique-values-of-array)
|
||||||
|
|
||||||
### Even or odd number
|
### Even or odd number
|
||||||
|
|
||||||
|
|||||||
@ -28,7 +28,7 @@ catch (err){
|
|||||||
try {
|
try {
|
||||||
output += `${startPart+'\n'}`;
|
output += `${startPart+'\n'}`;
|
||||||
for(var snippet of Object.entries(snippets))
|
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';
|
output += '\n';
|
||||||
for(var snippet of Object.entries(snippets))
|
for(var snippet of Object.entries(snippets))
|
||||||
output += `${snippet[1]+'\n'}`;
|
output += `${snippet[1]+'\n'}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user