From 2d1260bec9874907fd6545bfbabc0829c697b361 Mon Sep 17 00:00:00 2001 From: blob1807 <12388588+blob1807@users.noreply.github.com> Date: Sat, 13 Apr 2024 00:47:49 +1000 Subject: [PATCH] uniformity change small change to check things uniform --- core/net/url.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/net/url.odin b/core/net/url.odin index 5257b757c..16aa57ec5 100644 --- a/core/net/url.odin +++ b/core/net/url.odin @@ -30,7 +30,7 @@ split_url :: proc(url: string, allocator := context.allocator) -> (scheme, host, s = s[i+3:] } - i = strings.index_byte(s, '#') + i = strings.index(s, "#") if i != -1 { fragment = s[i+1:] s = s[:i] @@ -103,7 +103,7 @@ join_url :: proc(scheme, host, path: string, queries: map[string]string, fragmen if fragment != "" { if fragment[0] != '#' { - strings.write_byte(&b, '#') + strings.write_string(&b, "#") } strings.write_string(&b, strings.trim_space(fragment)) }