Skip to content

Commit e0cf1e9

Browse files
Use replaceAll instead of replace
Co-authored-by: Mark Cafaro <34887852+mcafaro@users.noreply.github.com>
1 parent 40540df commit e0cf1e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/buildtool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export interface RunBuildOptions {
77
}
88

99
export function generateCommand(options: RunBuildOptions): string {
10-
const pluginsPath = path.join(__dirname,"plugins").replace(/'/g,"''");
10+
const pluginsPath = path.join(__dirname,"plugins").replaceAll("'","''");
1111
let command: string = "addpath('"+ pluginsPath +"'); buildtool"
1212
if (options.Tasks) {
1313
command = command + " " + options.Tasks;

0 commit comments

Comments
 (0)