We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a74fedd commit faa6322Copy full SHA for faa6322
1 file changed
packages/app/src/context/file/path.ts
@@ -113,9 +113,10 @@ export function createPathHelpers(scope: () => string) {
113
const windows = /^[A-Za-z]:/.test(root)
114
const canonRoot = windows ? root.toLowerCase() : root
115
const canonPath = windows ? path.toLowerCase() : path
116
- if (canonPath.startsWith(canonRoot) &&
117
- (canonRoot.endsWith("/") || canonPath === canonRoot ||
118
- canonPath.startsWith(canonRoot + "/"))) {
+ if (
+ canonPath.startsWith(canonRoot) &&
+ (canonRoot.endsWith("/") || canonPath === canonRoot || canonPath.startsWith(canonRoot + "/"))
119
+ ) {
120
// If we match canonRoot + "/", the slash will be removed below.
121
path = path.slice(root.length)
122
}
0 commit comments