commit: 30ba87c160aaa5a157fc80778349701345a31c1f
parent 05b67a6e16244baa229cb08e1fce255f78ce7db2
Author: microlith57 <microlith57@gmail.com>
Date: Fri, 14 Jun 2019 10:10:19 +1200
Fix bug with invalid function name
very oops
Signed-off-by:
microlith57 <microlith57@gmail.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/404.html b/404.html
@@ -35,7 +35,7 @@ permalink: /404.html
var target = [];
// Fancy slugify regex bit
- parts.foreach(function(elem) {
+ parts.forEach(function(elem) {
elem = elem.toLowerCase();
elem = elem.replace(/[\s·/_'",:;\.-]+/g, '+'); // Replace whitespace and "·/_'",:;.-" to "+"
elem = elem.replace(/^\++|\++$/g, ''); // Remove "+"es at start and end