Skip to content

Commit faa6322

Browse files
chore: generate
1 parent a74fedd commit faa6322

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • packages/app/src/context/file

packages/app/src/context/file/path.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,10 @@ export function createPathHelpers(scope: () => string) {
113113
const windows = /^[A-Za-z]:/.test(root)
114114
const canonRoot = windows ? root.toLowerCase() : root
115115
const canonPath = windows ? path.toLowerCase() : path
116-
if (canonPath.startsWith(canonRoot) &&
117-
(canonRoot.endsWith("/") || canonPath === canonRoot ||
118-
canonPath.startsWith(canonRoot + "/"))) {
116+
if (
117+
canonPath.startsWith(canonRoot) &&
118+
(canonRoot.endsWith("/") || canonPath === canonRoot || canonPath.startsWith(canonRoot + "/"))
119+
) {
119120
// If we match canonRoot + "/", the slash will be removed below.
120121
path = path.slice(root.length)
121122
}

0 commit comments

Comments
 (0)