Don't remove underscores from slug

pull/2661/head
Matt Westcott 2016-06-01 13:48:06 +01:00
rodzic b1f194a637
commit cf8715835d
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -262,7 +262,7 @@ function cleanForSlug(val, useURLify) {
if (URLify != undefined && useURLify !== false) { // Check to be sure that URLify function exists, and that we want to use it.
return URLify(val, 255, true);
} else { // If not just do the "replace"
return val.replace(/\s/g, '-').replace(/[&\/\\#,+()$~%.'":`@\^!*?<>{}\_]/g, '').toLowerCase();
return val.replace(/\s/g, '-').replace(/[&\/\\#,+()$~%.'":`@\^!*?<>{}]/g, '').toLowerCase();
}
}