chalk-template 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -161,7 +161,7 @@ export default function chalkTemplate(firstString, ...arguments_) {
|
|
161
161
|
|
162
162
|
const parts = [firstString.raw[0]];
|
163
163
|
|
164
|
-
for (let index = 1; index < firstString.length; index++) {
|
164
|
+
for (let index = 1; index < firstString.raw.length; index++) {
|
165
165
|
parts.push(
|
166
166
|
String(arguments_[index - 1]).replace(/[{}\\]/g, '\\$&'),
|
167
167
|
String(firstString.raw[index]),
|