diff options
| author | postscriptum <postscriptum@project> | 2025-05-22 03:34:48 +0300 |
|---|---|---|
| committer | postscriptum <postscriptum@project> | 2025-05-22 03:34:48 +0300 |
| commit | 24105f6e9759b74c04522de1de12ddb77cfba568 (patch) | |
| tree | cd367a707541dcfee760319f47c21d1ac75c9ab9 /format.c | |
| parent | 072ae21013dc924c6bb3378a2480b571a66aba98 (diff) | |
use utf-8 lowercase function for tags #396
Diffstat (limited to 'format.c')
| -rw-r--r-- | format.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |