feat(seed): add dasherized titles to unpacked filenames
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
7133fd8516
commit
d01e0e421e
@@ -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 };
|
||||
|
Reference in New Issue
Block a user