Skip to content

Commit

Permalink
fix: fix delimiter for file name renames
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickleet committed Oct 17, 2018
1 parent 571d73f commit 47ffdac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/apply-template
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ const run = co.wrap(function* () {
rename: function (target) {
debug('rename', target)
Object.keys(resolvedVariables).forEach(templateVariable => {
if (target.indexOf(`{[${templateVariable}]}`) > -1) {
if (target.indexOf(`{[.${templateVariable}.]}`) > -1) {
target = target.replace(
`{[${templateVariable}]}`,
`{[.${templateVariable}.]}`,
resolvedVariables[templateVariable]
)
}
Expand Down

0 comments on commit 47ffdac

Please sign in to comment.