| ... | ... | @@ -1257,7 +1257,7 @@ fn domainToAscii(allocator: std.mem.Allocator, domain: []const u8, beStrict: boo |
| 1257 | 1257 | return result; |
| 1258 | 1258 | } |
| 1259 | 1259 | |
| 1260 | | // https://url.spec.whatwg.org/#ends-in-a-number-checker |
| 1260 | /// https://url.spec.whatwg.org/#ends-in-a-number-checker |
| 1261 | 1261 | fn endsInANumber(input: []const u8) bool { |
| 1262 | 1262 | // 1. Let parts be the result of strictly splitting input on U+002E (.). |
| 1263 | 1263 | // 2. If the last item in parts is the empty string, then: |
| ... | ... | @@ -1337,7 +1337,7 @@ fn parseIPv4(input: []const u8) !u32 { |
| 1337 | 1337 | return ipv4; |
| 1338 | 1338 | } |
| 1339 | 1339 | |
| 1340 | | // https://url.spec.whatwg.org/#ipv4-number-parser |
| 1340 | /// https://url.spec.whatwg.org/#ipv4-number-parser |
| 1341 | 1341 | fn parseIPv4Number(input_: []const u8, T: type) !T { |
| 1342 | 1342 | var input = input_; |
| 1343 | 1343 | // 1. If input is the empty string, then return failure. |