-
Notifications
You must be signed in to change notification settings - Fork 36
重构 #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
Conversation
Refactoring
// 一般需要走进这里, 除非改了 环境变量ComSpec的值 | ||
if (systemUtils.useVscodeNode()) { | ||
//eslint-disable-next-line | ||
return `${test.replace(/"/g, '\"')}`; |
Check failure
Code scanning / CodeQL
Replacement of a substring 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
//eslint-disable-next-line | ||
return `${test.replace(/"/g, '\"')}`; | ||
} | ||
return `"${test.replace(/"/g, '\\"')}"`; |
Check failure
Code scanning / CodeQL
Incomplete string escaping or encoding
//eslint-disable-next-line | ||
return `${test.replace(/"/g, '\"')}`; | ||
} | ||
return `'${test.replace(/"/g, '\\"')}'`; |
Check failure
Code scanning / CodeQL
Incomplete string escaping or encoding
重构