Skip to content

Commit

Permalink
update the saneName
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Kozlov authored and Andrey Kozlov committed Aug 9, 2022
1 parent 645e77e commit 544ba79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/saneName.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const _ = require('lodash');
const { paramCase } = require('change-case');
module.exports.saneName = function(x) {
return _.deburr(paramCase(x));
return _.deburr(paramCase(x.replace(/\s/g,'spaceseparator')).replaceAll('spaceseparator', '-'));
};

0 comments on commit 544ba79

Please sign in to comment.