Files
chenhg5-cc-connect/platform/dingtalk
wgx521 eef319ad56 fix(dingtalk): extractAtUserIds regex 放宽匹配 4+ 位用户 ID (#1237)
* fix(dingtalk): extractAtUserIds regex 放宽匹配 4+ 位用户 ID

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* fix(dingtalk): hoist atUserID regexp to package level, add tests, fix gofmt

Addresses QA review P2 items for PR #1237:
- Move regexp.MustCompile to package-level var to avoid recompiling on each Reply
- Add blank line between extractAtUserIds and preprocessDingTalkMarkdown (gofmt)
- Add TestExtractAtUserIds (12 sub-cases), TestReply_IncludesExtractedAtUserIds,
  and TestReply_NoAtUserIdsWhenNoMention

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

---------

Co-authored-by: wen_guoxing <wen_guoxing@itrus.com.cn>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-09 23:17:14 +08:00
..