mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 05:50:11 +01:00
Fixes CodeQL issues (#4090)
This commit is contained in:
parent
be57cbf4ef
commit
97c7fdb35c
3 changed files with 11 additions and 6 deletions
|
|
@ -37,10 +37,15 @@ export const typescriptVersion = "${typeScriptDependencyVersion}";\n`
|
|||
|
||||
let tsServices = fs.readFileSync(path.join(TYPESCRIPT_LIB_SOURCE, 'typescript.js')).toString();
|
||||
|
||||
tsServices = tsServices.replace(
|
||||
'const path = matchedStar ? subst.replace("*", matchedStar) : subst;',
|
||||
'const path = matchedStar ? subst.replace("*", matchedStar) : subst; // CodeQL [SM02383] This is a false positive, the code is from the TypeScript compiler'
|
||||
);
|
||||
tsServices = tsServices
|
||||
.replace(
|
||||
'const path = matchedStar ? subst.replace("*", matchedStar) : subst;',
|
||||
'const path = matchedStar ? subst.replace("*", matchedStar) : subst; // CodeQL [SM02383] This is a false positive, the code is from the TypeScript compiler'
|
||||
)
|
||||
.replace(
|
||||
'return key.replace("*", matchedStar);',
|
||||
'return key.replace("*", matchedStar); // CodeQL [SM02383] This is a false positive, the code is from the TypeScript compiler'
|
||||
);
|
||||
|
||||
// The output from this build will only be accessible via ESM; rather than removing
|
||||
// references to require/module, define them as dummy variables that bundlers will ignore.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue