Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 64d8e05

Browse files
authored
Merge pull request #158 from mathworks/2.1.4-Qualification
Handle apostrophe in file path value
2 parents e6afdca + 2aaee4c commit 64d8e05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/mathworks/ci/RunMatlabTestsBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ private String getInputArguments() {
299299
artifact.addFilePathArgTo(args);
300300
}
301301

302-
args.forEach((key, val) -> inputArgsList.add("'" + key + "'" + "," + "'" + val + "'"));
302+
args.forEach((key, val) -> inputArgsList.add("'" + key + "'" + "," + "'" + val.replaceAll("'", "''") + "'"));
303303

304304
/*
305305
* Add source folder options to argument.

0 commit comments

Comments
 (0)