diff options
| author | blob1807 <12388588+blob1807@users.noreply.github.com> | 2024-04-13 00:47:49 +1000 |
|---|---|---|
| committer | blob1807 <12388588+blob1807@users.noreply.github.com> | 2024-04-13 00:47:49 +1000 |
| commit | 2d1260bec9874907fd6545bfbabc0829c697b361 (patch) | |
| tree | de8d78b7fcd24a18f73675bc5b7cd85dbcb50f79 /core | |
| parent | c753711d86fda7392c2556741de0fd9b70d7c2e1 (diff) | |
uniformity change
small change to check things uniform
Diffstat (limited to 'core')
| -rw-r--r-- | core/net/url.odin | 4 |
1 files 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)) } |