feat(seed): add dasherized titles to unpacked filenames

This commit is contained in:
Alex Chaffee
2018-03-26 14:20:54 -04:00
committed by Mrugesh Mohapatra
parent 7133fd8516
commit d01e0e421e
5 changed files with 30 additions and 12 deletions

View File

@@ -5,3 +5,6 @@ export function dashify(str) {
.replace(/[^a-z0-9\-\.]/gi, '')
.replace(/\:/g, '');
}
// todo: unify with server/utils/index.js:dasherize
const dasherize = dashify;
export { dasherize };