diff options
Diffstat (limited to 'std/node/url.ts')
-rw-r--r-- | std/node/url.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/node/url.ts b/std/node/url.ts index bbf0ff5d0..b0034d02d 100644 --- a/std/node/url.ts +++ b/std/node/url.ts @@ -72,7 +72,7 @@ function getPathFromURLWin(url: URL): string { return `\\\\${hostname}${pathname}`; } else { // Otherwise, it's a local path that requires a drive letter - const letter = pathname.codePointAt(1) || 0x20; + const letter = pathname.codePointAt(1)! | 0x20; const sep = pathname[2]; if ( letter < CHAR_LOWERCASE_A || |