Merge branch 'master' of https://github.com/overcastsoftware/wagtail into overcastsoftware-master

pull/1848/head
Matt Westcott 2015-10-20 10:20:34 +01:00
commit 6cb450e28e
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -296,7 +296,7 @@ function InlinePanel(opts) {
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, val.length);
return URLify(val);
} else { // If not just do the "replace"
return val.replace(/\s/g, '-').replace(/[^A-Za-z0-9\-\_]/g, '').toLowerCase();
}