From d5eaf105bbbea4a3547353b637930b1682984760 Mon Sep 17 00:00:00 2001 From: Akash Kava <39438041+ackava@users.noreply.github.com> Date: Tue, 9 May 2023 22:15:09 +0530 Subject: [PATCH] Added replace all --- src/commands/custom.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/commands/custom.ts b/src/commands/custom.ts index edefee6..76ce657 100644 --- a/src/commands/custom.ts +++ b/src/commands/custom.ts @@ -56,7 +56,8 @@ export default class Custom extends Command { filePath }; // overwrite file... - command = command.replace(key, `-y ${filePath}`); + // @ts-expect-error + command = command.replaceAll(key, `-y ${filePath}`); continue; } if (key.startsWith("input")) { @@ -65,7 +66,8 @@ export default class Custom extends Command { url: element, filePath, }); - command = command.replace(key, filePath); + // @ts-expect-error + command = command.replaceAll(key, filePath); continue; } }