Skip to content

Commit 3a61d80

Browse files
committed
fix UNC validation
1 parent 1fc0fb0 commit 3a61d80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/url.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,7 @@ function pathToFileURL(filepath) {
15371537
'Missing UNC resource path'
15381538
);
15391539
}
1540-
if (hostnameEndIndex === 3) {
1540+
if (hostnameEndIndex === 2) {
15411541
throw new ERR_INVALID_ARG_VALUE(
15421542
'filepath',
15431543
filepath,

0 commit comments

Comments
 (0)