Skip to content

feat: 增加正则模式支持{$team}模板字符#110

Closed
LyKoiya wants to merge 1 commit into
tinymins:masterfrom
LyKoiya:feat--增加正则模式支持{$team}模板字符

Hidden character warning

The head ref may contain hidden characters: "feat--\u589e\u52a0\u6b63\u5219\u6a21\u5f0f\u652f\u6301{$team}\u6a21\u677f\u5b57\u7b26"
Closed

feat: 增加正则模式支持{$team}模板字符#110
LyKoiya wants to merge 1 commit into
tinymins:masterfrom
LyKoiya:feat--增加正则模式支持{$team}模板字符

Conversation

@LyKoiya

@LyKoiya LyKoiya commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

团队监控,增加正则模式支持{$team}模板字符。
实现思路:先在 szContent 中尝试移除成员名来定位被点名者,若移除成功,说明符合{$team}条件,再将正则规则中的 {$team} 替换为空,用剩余内容执行单次正则匹配。相比遍历所有成员逐个执行正则,只需一次正则调用,避免性能损耗。

@LyKoiya

LyKoiya commented Jun 30, 2026

Copy link
Copy Markdown
Contributor Author

关闭该分支提交,重新用一条分支提交,使提交顺序干净,避免合并冲突

@LyKoiya LyKoiya closed this Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant