From 44c09610483e8af7a54c1e2b4b0e80ce92cf0bc0 Mon Sep 17 00:00:00 2001 From: sasogu Date: Sat, 6 May 2017 07:33:02 +0200 Subject: [PATCH 1/3] Special Latin language characters --- lib/Toc.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Toc.coffee b/lib/Toc.coffee index db89079..df67750 100644 --- a/lib/Toc.coffee +++ b/lib/Toc.coffee @@ -202,7 +202,7 @@ class Toc ___createLink: (name) -> hash = new String name hash = hash.toLowerCase().replace /\s/g, "-" - hash = hash.replace /[^a-z0-9\u4e00-\u9fa5äüö\-]/g, "" + hash = hash.replace /[^a-z0-9\u4e00-\u9fa5äüöáàéèíóúñç\-]/g, "" if hash.indexOf("--") > -1 hash = hash.replace /(-)+/g, "-" if name.indexOf(":-") > -1 From 5f971b89b1d07c949e3b771e2ee00b9c8f45b9cc Mon Sep 17 00:00:00 2001 From: sasogu Date: Sat, 6 May 2017 07:40:05 +0200 Subject: [PATCH 2/3] Special Latin language characters --- lib/Toc.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Toc.coffee b/lib/Toc.coffee index 0da89f5..ceeb419 100644 --- a/lib/Toc.coffee +++ b/lib/Toc.coffee @@ -194,7 +194,7 @@ class Toc ___createLink: (name) -> hash = new String name hash = hash.toLowerCase().replace /\s/g, "-" - hash = hash.replace /[^a-z0-9\u4e00-\u9fa5äüö\-]/g, "" + hash = hash.replace /[^a-z0-9\u4e00-\u9fa5äüöáàéèíóúñç\-]/g, "" if hash.indexOf("--") > -1 hash = hash.replace /(-)+/g, "-" if name.indexOf(":-") > -1 From 511be8db9e233776b3e104e128f0ef922267f653 Mon Sep 17 00:00:00 2001 From: sasogu Date: Sun, 7 May 2017 07:08:14 +0200 Subject: [PATCH 3/3] Added character y --- lib/Toc.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Toc.coffee b/lib/Toc.coffee index ceeb419..10231cc 100644 --- a/lib/Toc.coffee +++ b/lib/Toc.coffee @@ -194,7 +194,7 @@ class Toc ___createLink: (name) -> hash = new String name hash = hash.toLowerCase().replace /\s/g, "-" - hash = hash.replace /[^a-z0-9\u4e00-\u9fa5äüöáàéèíóúñç\-]/g, "" + hash = hash.replace /[^a-z0-9\u4e00-\u9fa5äüöáàéèíóúñçy\-]/g, "" if hash.indexOf("--") > -1 hash = hash.replace /(-)+/g, "-" if name.indexOf(":-") > -1