Skip to content

Commit f3c830e

Browse files
committed
fix: remove pipe symbol from custom template filename search
1 parent b2e9a9a commit f3c830e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/generateComponentUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function getCustomTemplate(componentName, templatePath) {
6565

6666
try {
6767
const template = readFileSync(templatePath, 'utf8');
68-
const filename = path.basename(templatePath).replace(/template[|_-]?name/i, componentName);
68+
const filename = path.basename(templatePath).replace(/template[_-]?name/i, componentName);
6969

7070
return { template, filename };
7171
} catch (e) {

0 commit comments

Comments
 (0)