commit d84b3d4
grunfink
·
2026-09-14 14:33:13 +0000 UTC
parent 4520030
Use utf8 lowercasing in words_in_content().
1 files changed,
+2,
-2
M
data.c
M
data.c
+2,
-2
1@@ -3432,8 +3432,8 @@ const xs_str *words_in_content(const xs_list *words, const xs_val *content)
2 const xs_str *cv;
3 xs_list_foreach(words, wv) {
4 xs_list_foreach(sc, cv) {
5- xs_tolower_i((xs_str*)cv);
6- if(xs_str_in(cv, wv) != -1)
7+ xs *s = xs_utf8_tolower(cv);
8+ if(xs_str_in(s, wv) != -1)
9 return wv;
10 }
11 }