mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
fix tagToTitle helper
This commit is contained in:
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user