fix(resolver): support encoded file urls (#5766)

* start working on this

* it works now

* better implementation imo

* yippee

* more tests and better unrefing

* fix leak?
This commit is contained in:
dave caruso
2023-09-29 14:58:39 -07:00
committed by GitHub
parent 6afa78120a
commit 10bee33909
10 changed files with 230 additions and 73 deletions

View File

@@ -1523,7 +1523,6 @@ pub const VirtualMachine = struct {
fn normalizeSpecifierForResolution(specifier_: []const u8, query_string: *[]const u8) []const u8 {
var specifier = specifier_;
if (strings.hasPrefixComptime(specifier, "file://")) specifier = specifier["file://".len..];
if (strings.indexOfChar(specifier, '?')) |i| {
query_string.* = specifier[i..];