Skip to content

Commit

Permalink
Added replace all
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed May 9, 2023
1 parent 12cabc2 commit d5eaf10
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/commands/custom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand All @@ -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;
}
}
Expand Down

0 comments on commit d5eaf10

Please sign in to comment.