mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 11:29:02 +00:00
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:
@@ -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..];
|
||||
|
||||
Reference in New Issue
Block a user