From 45579768fa74e2a541b62fb1e731d3e38ea577df Mon Sep 17 00:00:00 2001 From: SansGuidon Date: Mon, 6 Jan 2025 09:24:51 +0000 Subject: [PATCH] feat(indieblog) exclude specific character sets in blog titles try to exclude german/russian/asian/greek blog posts because I can only read french/english --- cron/generate_indieblog_daily_rss.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cron/generate_indieblog_daily_rss.php b/cron/generate_indieblog_daily_rss.php index fce21cd..ca34d7c 100644 --- a/cron/generate_indieblog_daily_rss.php +++ b/cron/generate_indieblog_daily_rss.php @@ -19,6 +19,9 @@ $excludePatterns = [ '(?i)(\bin\s202\d|\bat\s202\d)', // "in/at 202x" '(?i)(my\s.*\b202\d\b)', // Titres contenant "My ... 202x" + // Exclude specific character sets + '[Α-ωА-яäöüßÄÖÜẞ\u4E00-\u9FFF\u3000-\u303F\u3040-\u309F\u30A0-\u30FF\uFF00-\uFFEF]', + // Week notes et expressions relatives au nouvel an '(?i)(week notes)', '(?i)(new year)',