From 4e108d434adb95b9bd4e0a553a85713ec88d71c5 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Mon, 14 Mar 2022 08:59:21 -0400 Subject: [PATCH] fix tagToTitle helper --- scripts/plop/plopfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/plop/plopfile.js b/scripts/plop/plopfile.js index 49a8e4151..4b4e0c5c4 100644 --- a/scripts/plop/plopfile.js +++ b/scripts/plop/plopfile.js @@ -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', {