From f65ad562e26e2104c8fb40944153b986180ff21a Mon Sep 17 00:00:00 2001 From: billymoroney <67807283+billymoroney1@users.noreply.github.com> Date: Mon, 17 Jan 2022 23:10:50 -0600 Subject: [PATCH] changed firstString.length to firstString.raw.length (#6) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d81fa92..acaf034 100644 --- a/index.js +++ b/index.js @@ -161,7 +161,7 @@ export default function chalkTemplate(firstString, ...arguments_) { const parts = [firstString.raw[0]]; - for (let index = 1; index < firstString.length; index++) { + for (let index = 1; index < firstString.raw.length; index++) { parts.push( String(arguments_[index - 1]).replace(/[{}\\]/g, '\\$&'), String(firstString.raw[index]),