You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Working when prefixed with file:///
file:///c:\foo\bar
Scheme: file
Host:
Path: /c:\foo\bar
file:///c:/foo/bar
Scheme: file
Host:
Path: /c:/foo/bar
# Not working with only 2 leading slashes
file://c:\foo\bar
Scheme: file
Host: c:\foo\bar
Path:
# Host containing colon but without port should not be valid?
file://c:/foo/bar
Scheme: file
Host: c:
Path: /foo/bar
# Expected: Scheme: empty, Path: input
c:\foo\bar
Scheme: c
Host:
Path:
# Expected: Scheme: empty, Path: input
c:/foo/bar
Scheme: c
Host:
Path: /foo/bar
The middle two tests aren't real bugs though, I guess.
The text was updated successfully, but these errors were encountered:
Parsing a Windows filepath without scheme yields an invalid url:
Examples: https://play.golang.org/p/QuBFiU_1b1
The middle two tests aren't real bugs though, I guess.
The text was updated successfully, but these errors were encountered: