File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 53
53
54
54
getInputName (item ){
55
55
if (this .schema && this .schema .inputName && this .schema .inputName .length > 0 ){
56
- return this .schema .inputName + " _" + this .getItemValue (item);
56
+ return slugify ( this .schema .inputName + " _" + this .getItemValue (item) );
57
57
}
58
58
return slugify (this .getItemValue (item));
59
59
},
Original file line number Diff line number Diff line change @@ -88,11 +88,11 @@ module.exports.slugify = function (name = "") {
88
88
. trim ( )
89
89
//.toLowerCase()
90
90
// Spaces & underscores to dashes
91
- . replace ( / | _ / g, "-" )
91
+ . replace ( / / g, "-" )
92
92
// Multiple dashes to one
93
93
. replace ( / - { 2 , } / g, "-" )
94
94
// Remove leading & trailing dashes
95
95
. replace ( / ^ - + | - + $ / g, "" )
96
96
// Remove anything that isn't a (English/ASCII) letter, number or dash.
97
- . replace ( / ( [ ^ a - z A - Z 0 - 9 - ] + ) / g, "" ) ;
97
+ . replace ( / ( [ ^ a - z A - Z 0 - 9 - _ / . / : ] + ) / g, "" ) ;
98
98
} ;
You can’t perform that action at this time.
0 commit comments