zuby 1.0.26 → 1.0.28
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/commands/init.js
CHANGED
|
@@ -98,7 +98,7 @@ options) {
|
|
|
98
98
|
return;
|
|
99
99
|
let fileContent = await readFile(file, 'utf-8');
|
|
100
100
|
// Remove template comments
|
|
101
|
-
fileContent = fileContent.replace(/\/\/\s+@template\s
|
|
101
|
+
fileContent = fileContent.replace(/\/\/\s+@template\s+/g, '');
|
|
102
102
|
// Replace all available <key> values in the file
|
|
103
103
|
Object.entries(options).forEach(([key, value]) => {
|
|
104
104
|
fileContent = fileContent.replace(new RegExp(`<${key}>`, 'g'), value.toString());
|