Skip to content

Commit acd973b

Browse files
committed
handle brackets in name
1 parent eec3ab7 commit acd973b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32572,7 +32572,7 @@ const params_1 = __nccwpck_require__(5966);
3257232572
const child_process_1 = __nccwpck_require__(2081);
3257332573
const escapeShellValue = (value) => {
3257432574
// Escape special characters that could cause shell interpretation issues
32575-
return value.replace(/(["\\'$`!\s])/g, '\\$1');
32575+
return value.replace(/(["\\'$`!\s\[\]{}()&|;<>*?#^~])/g, '\\$1');
3257632576
};
3257732577
const run = () => __awaiter(void 0, void 0, void 0, function* () {
3257832578
try {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "dcd-github-action",
33
"description": "run maestro tests on devicecloud.dev",
44
"author": "devicecloud.dev",
5-
"version": "1.2.5",
5+
"version": "1.2.6",
66
"main": "src/index.ts",
77
"license": "MIT",
88
"engines": {

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { execSync } from 'child_process';
44

55
const escapeShellValue = (value: string): string => {
66
// Escape special characters that could cause shell interpretation issues
7-
return value.replace(/(["\\'$`!\s])/g, '\\$1');
7+
return value.replace(/(["\\'$`!\s\[\]{}()&|;<>*?#^~])/g, '\\$1');
88
};
99

1010
const run = async (): Promise<void> => {

0 commit comments

Comments
 (0)