aboutsummaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@noreply.codeberg.org>2025-05-22 11:15:07 +0200
committergrunfink <grunfink@noreply.codeberg.org>2025-05-22 11:15:07 +0200
commit096bb217105202ce6ec5bad046fd70cc3e3508cd (patch)
treee739fef7755347dc2f80f31b782467461ae3bacd /format.c
parent8c60545e657bf7a95aeaee2fa474cf021588de8b (diff)
parent450e679f5197cfe3101d2b3f032f3fabeadfc848 (diff)
Merge pull request 'use utf-8 lowercase function for tags #396' (#400) from postscriptum/snac2:utf8-lower-tags into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/400
Diffstat (limited to 'format.c')
-rw-r--r--format.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/format.c b/format.c
index 2f30a0d..0f844cd 100644
--- a/format.c
+++ b/format.c
@@ -8,6 +8,7 @@
#include "xs_json.h"
#include "xs_time.h"
#include "xs_match.h"
+#include "xs_unicode.h"
#include "snac.h"
@@ -443,7 +444,7 @@ xs_str *sanitize(const char *content)
if (n & 0x1) {
xs *s1 = xs_strip_i(xs_crop_i(xs_dup(v), v[1] == '/' ? 2 : 1, -1));
xs *l1 = xs_split_n(s1, " ", 1);
- xs *tag = xs_tolower_i(xs_dup(xs_list_get(l1, 0)));
+ xs *tag = xs_utf8_to_lower(xs_dup(xs_list_get(l1, 0)));
xs *s2 = NULL;
int i;