From 7ab5843fa0811cdce3e867f6d8d8ad2f6281b23e Mon Sep 17 00:00:00 2001 From: Andrey Gurtovoy Date: Thu, 5 Jul 2018 13:25:04 +0300 Subject: [PATCH] refac(make-block): corrected length of the decorative line --- make-block.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/make-block.js b/make-block.js index b9bbd4e6..bc684e8d 100755 --- a/make-block.js +++ b/make-block.js @@ -110,9 +110,10 @@ function initMakeBlock(candidateBlockName) { .then(() => createFiles(blockPath, blockName)) .then(() => getFiles(blockPath)) .then(files => { - const line = '-'.repeat(48 + blockName.length); + const msg = `The block has just been created in 'blocks/${blockName}'`; + const line = '-'.repeat(msg.length); console.log(line); - console.log(`The block has just been created in 'app/blocks/${blockName}'`); + console.log(msg); console.log(line); // Displays a list of files created