URL {
href: 'file:///laptop/My%20Documents/FileSchemeURIs.doc',
origin: 'null',
protocol: 'file:',
username: '',
password: '',
host: '',
hostname: '',
port: '',
pathname: 'https://github.com/laptop/My%20Documents/FileSchemeURIs.doc',
search: '',
searchParams: URLSearchParams {},
hash: ''
}
Node.js version: v12.18.3 and v14.8.0
Platform: Windows 10 (10.0.19041)
Subsystem:
urlWhat steps will reproduce the bug?
Expected behavior
As per Microsoft's UNC URI documentation):
file://laptop/My%20Documents/FileSchemeURIs.docActual behavior
hostnameshould belaptop(not'').pathnameshould be/My%20Documents/FileSchemeURIs.doc(not be prefixed by/laptop/).