Tags: normalize diacritics in tag slugs (ō → o)
This commit is contained in:
+1
-1
@@ -288,7 +288,7 @@ function run() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function slugifyTag(t) {
|
function slugifyTag(t) {
|
||||||
return t.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
return t.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildStateMap() {
|
function buildStateMap() {
|
||||||
|
|||||||
Reference in New Issue
Block a user