Skip to content

Commit 47ffdac

Browse files
committed
fix: fix delimiter for file name renames
1 parent 571d73f commit 47ffdac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/apply-template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ const run = co.wrap(function* () {
9191
rename: function (target) {
9292
debug('rename', target)
9393
Object.keys(resolvedVariables).forEach(templateVariable => {
94-
if (target.indexOf(`{[${templateVariable}]}`) > -1) {
94+
if (target.indexOf(`{[.${templateVariable}.]}`) > -1) {
9595
target = target.replace(
96-
`{[${templateVariable}]}`,
96+
`{[.${templateVariable}.]}`,
9797
resolvedVariables[templateVariable]
9898
)
9999
}

0 commit comments

Comments
 (0)