Skip to content

重构 #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 33 commits into from
Nov 14, 2022
Merged

重构 #52

merged 33 commits into from
Nov 14, 2022

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