Commit 85a7e6f1 authored by Michael Seaholm's avatar Michael Seaholm

Merge branch 'feature/fse-589' of gitlab.entropy.cc:blacklight/bl-edit into release

parents 7952798d e29209bf
......@@ -59,7 +59,7 @@ module.exports = function addRequest(options){
if(!manualPathChange){
var src=$addTitleField.val();
var original=$addPathNameField.val();
var altered=src.replace(/[\W]/g,"_").replace(/_{2,}/g,"_").replace(/_$/,"").toLowerCase();
var altered=src.replace(/[\W]/g,"-").replace(/-{2,}/g,"-").replace(/-$/,"").toLowerCase();
$addPathNameField.val(altered);
if(!original){
$addPathNameField.focus();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment