Skip to content

Commit 2716328

Browse files
committed
fix Windows inbound media path casing
1 parent ca5905e commit 2716328

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/media-core/src/inbound-path-policy.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ function normalizePosixAbsolutePath(value: string): string | undefined {
2121
if (WINDOWS_DRIVE_ROOT_RE.test(withoutTrailingSlash)) {
2222
return undefined;
2323
}
24-
return withoutTrailingSlash;
24+
return WINDOWS_DRIVE_ABS_RE.test(withoutTrailingSlash)
25+
? withoutTrailingSlash.toLowerCase()
26+
: withoutTrailingSlash;
2527
}
2628

2729
function splitPathSegments(value: string): string[] {

0 commit comments

Comments
 (0)