Skip to content

Commit 6400c3e

Browse files
Potential fix for code scanning alert no. 4: Incomplete string escaping or encoding
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent eb4172a commit 6400c3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/buildtool.unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as path from "path";
44
import * as buildtool from "./buildtool";
55

66
describe("command generation", () => {
7-
const command = "addpath('"+ path.join(__dirname, "plugins").replace("'","''") +"'); buildtool"
7+
const command = "addpath('"+ path.join(__dirname, "plugins").replace(/'/g,"''") +"'); buildtool"
88
it("buildtool invocation with unspecified tasks and build options", () => {
99
const options: buildtool.RunBuildOptions = {
1010
Tasks: "",

0 commit comments

Comments
 (0)