| ... | @@ -1466,7 +1466,7 @@ fn percentEncode(allocator: std.mem.Allocator, input: []const u8, comptime set: | ... | @@ -1466,7 +1466,7 @@ fn percentEncode(allocator: std.mem.Allocator, input: []const u8, comptime set: |
| 1466 | } | 1466 | } |
| 1467 | | 1467 | |
| 1468 | /// https://url.spec.whatwg.org/#string-percent-decode | 1468 | /// https://url.spec.whatwg.org/#string-percent-decode |
| 1469 | fn percentDecode(allocator: std.mem.Allocator, input: []const u8) ![]u8 { | 1469 | pub fn percentDecode(allocator: std.mem.Allocator, input: []const u8) ![]u8 { |
| 1470 | var result = std.ArrayList(u8).init(allocator); | 1470 | var result = std.ArrayList(u8).init(allocator); |
| 1471 | errdefer result.deinit(); | 1471 | errdefer result.deinit(); |
| 1472 | try result.ensureUnusedCapacity(input.len); | 1472 | try result.ensureUnusedCapacity(input.len); |