fix tagToTitle helper

pull/706/head
Cory LaViska 2022-03-14 08:59:21 -04:00
rodzic 0f626bebbf
commit 4e108d434a
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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', {