Skip to content

Conversation

ccagml
Copy link
Owner

@ccagml ccagml commented Nov 14, 2022

重构

// 一般需要走进这里, 除非改了 环境变量ComSpec的值
if (systemUtils.useVscodeNode()) {
//eslint-disable-next-line
return `${test.replace(/"/g, '\"')}`;

Check failure

Code scanning / CodeQL

Replacement of a substring with itself

This replaces '"' with itself.
} else {
if (systemUtils.useVscodeNode()) {
//eslint-disable-next-line
return `${test.replace(/"/g, '\"')}`;

Check failure

Code scanning / CodeQL

Replacement of a substring with itself

This replaces '"' with itself.
//eslint-disable-next-line
return `${test.replace(/"/g, '\"')}`;
}
return `"${test.replace(/"/g, '\\"')}"`;

Check failure

Code scanning / CodeQL

Incomplete string escaping or encoding

This does not escape backslash characters in the input.
//eslint-disable-next-line
return `${test.replace(/"/g, '\"')}`;
}
return `'${test.replace(/"/g, '\\"')}'`;

Check failure

Code scanning / CodeQL

Incomplete string escaping or encoding

This does not escape backslash characters in the input.
@ccagml ccagml merged commit 0e8aab5 into release Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant