fix tagToTitle helper

This commit is contained in:
Cory LaViska
2022-03-14 08:59:21 -04:00
parent 0f626bebbf
commit 4e108d434a

View File

@@ -4,7 +4,7 @@ export default function (plop) {
plop.setHelper('tagToTitle', tag => {
const withoutPrefix = plop.getHelper('tagWithoutPrefix');
const titleCase = plop.getHelper('titleCase');
return titleCase(withoutPrefix(tag));
return titleCase(withoutPrefix(tag).replace(/-/g, ' '));
});
plop.setGenerator('component', {