|
|
@@ -342,10 +342,11 @@ export namespace Config {
|
|
|
}
|
|
|
|
|
|
function rel(item: string, patterns: string[]) {
|
|
|
+ const normalizedItem = item.replaceAll("\\", "/")
|
|
|
for (const pattern of patterns) {
|
|
|
- const index = item.indexOf(pattern)
|
|
|
+ const index = normalizedItem.indexOf(pattern)
|
|
|
if (index === -1) continue
|
|
|
- return item.slice(index + pattern.length)
|
|
|
+ return normalizedItem.slice(index + pattern.length)
|
|
|
}
|
|
|
}
|
|
|
|