mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-18 05:51:13 +00:00
Merge branch 'master' of https://github.com/overcastsoftware/wagtail into overcastsoftware-master
This commit is contained in:
commit
6cb450e28e
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue