diff --git a/core/net/url.odin b/core/net/url.odin index f20c41229..29028b16c 100644 --- a/core/net/url.odin +++ b/core/net/url.odin @@ -154,7 +154,7 @@ percent_decode :: proc(encoded_string: string, allocator := context.allocator) - strings.write_string(&b, s[:i]) s = s[i:] - if len(s) == 0 { + if len(s) <= 1 { return // percent without anything after it } s = s[1:]