Skip to content

Commit f4af0e0

Browse files
update codeql issue (#4528)
1 parent f1080cc commit f4af0e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/drivers/cmakeFileApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ function convertToExtCodeModelFileGroup(targetObject: CodeModelKind.TargetObject
484484
const targetRootSource = convertToAbsolutePath(targetObject.paths.source, rootPaths.source);
485485
targetObject.sources.forEach(sourceFile => {
486486
const fileAbsolutePath = convertToAbsolutePath(sourceFile.path, rootPaths.source);
487-
const fileRelativePath = path.relative(targetRootSource, fileAbsolutePath).replace('\\', '/');
487+
const fileRelativePath = path.relative(targetRootSource, fileAbsolutePath).replace(/\\/g, '/');
488488
if (sourceFile.compileGroupIndex !== undefined) {
489489
fileGroup[sourceFile.compileGroupIndex].sources.push(fileRelativePath);
490490
} else {

0 commit comments

Comments
 (0)