From 431a663d27e06e4bd9b2a0c67690d4cb7ba6b29b Mon Sep 17 00:00:00 2001 From: zhangsheng Date: Fri, 24 Jul 2026 16:42:24 +0800 Subject: [PATCH] fix(dfm-search): exclude WeChat monthly archive dirs from search results MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add YYYY-MM glob pattern to loc_wechat_data exclude_patterns so that WeChat's auto-created monthly folders (e.g. 2026-07) are filtered out. 在 loc_wechat_data 规则的 exclude_patterns 中追加 YYYY-MM 月份目录通配, 过滤微信按月自动创建的归档目录,避免其混入搜索结果。 Log: 修复微信接收文件搜索结果包含月份目录的问题 PMS: BUG-371519 Influence: 搜索"今天微信接受的文件"时不再返回微信自建的月份归档目录,仅返回实际接收的文件。 --- .../dfm-search-lib/semantic/rules/zh_CN/location_rules.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dfm-search/dfm-search-lib/semantic/rules/zh_CN/location_rules.json b/src/dfm-search/dfm-search-lib/semantic/rules/zh_CN/location_rules.json index db84cba5..fde73da1 100644 --- a/src/dfm-search/dfm-search-lib/semantic/rules/zh_CN/location_rules.json +++ b/src/dfm-search/dfm-search-lib/semantic/rules/zh_CN/location_rules.json @@ -83,7 +83,7 @@ "Documents/xwechat_files/*/msg/file", "Documents/xwechat_files/*/msg/video" ], - "exclude_patterns": ["*_thumb.jpg"], + "exclude_patterns": ["*_thumb.jpg", "[0-9][0-9][0-9][0-9]-[0-9][0-9]"], "include_hidden": false, "im_received": true }