-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior
Description
Zig Version
0.14.1
Steps to Reproduce and Observed Behavior
When trying to parse a Windows file path URI, the resulting value of the struct field path is not valid.
const path_uri = "file:///C:/Users/someone";
const uri = try std.Uri.parse(path_uri);
// uri.path.percent_encoded contains "/C:/Users/someone"
try std.testing.expectEqualStrings("/C:/Users/someone", uri.path.percent_encoded);Expected Behavior
The parser should strip the leading slash when converting a Windows file URI. In this example, the path field should only contain "C:/Users/someone" (without the trailing /).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior