提交 48c022fb 编写于 作者: R Rob Lourens

Fix #30266

上级 2ff7d989
......@@ -442,9 +442,14 @@ function globExprsToRgGlobs(patterns: glob.IExpression, folder: string): IRgGlob
* Exported for testing
*/
export function getAbsoluteGlob(folder: string, key: string): string {
return paths.isAbsolute(key) ?
let absolute = paths.isAbsolute(key) ?
key :
path.join(folder, key);
absolute = strings.rtrim(absolute, '\\');
absolute = strings.rtrim(absolute, '/');
return absolute;
}
export function fixDriveC(path: string): string {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册