summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorGravatar postscriptum2025-05-22 04:16:28 +0300
committerGravatar postscriptum2025-05-22 04:16:28 +0300
commite567736640da21d37848567cd164cb84bbdab507 (patch)
treed57764aee8e3611eda49a05c79971ca595db8617 /data.c
parentuse utf-8 lowercase function for tags #396 (diff)
downloadpenes-snac2-e567736640da21d37848567cd164cb84bbdab507.tar.gz
penes-snac2-e567736640da21d37848567cd164cb84bbdab507.tar.xz
penes-snac2-e567736640da21d37848567cd164cb84bbdab507.zip
add missed replacement to the `content_match` function
Diffstat (limited to 'data.c')
-rw-r--r--data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/data.c b/data.c
index d5dc171..8ca271d 100644
--- a/data.c
+++ b/data.c
@@ -2817,7 +2817,7 @@ int content_match(const char *file, const xs_dict *msg)
2817 /* massage content (strip HTML tags, etc.) */ 2817 /* massage content (strip HTML tags, etc.) */
2818 xs *c = xs_regex_replace(v, "<[^>]+>", " "); 2818 xs *c = xs_regex_replace(v, "<[^>]+>", " ");
2819 c = xs_regex_replace_i(c, " {2,}", " "); 2819 c = xs_regex_replace_i(c, " {2,}", " ");
2820 c = xs_tolower_i(c); 2820 c = xs_utf8_to_lower(c);
2821 2821
2822 while (!r && !feof(f)) { 2822 while (!r && !feof(f)) {
2823 xs *rx = xs_strip_i(xs_readline(f)); 2823 xs *rx = xs_strip_i(xs_readline(f));