This repository was archived by the owner on Feb 3, 2026. It is now read-only.
fix: 修复团队监控中使用正则表达式喊话事件的多段倒计时条未替换{$1}模板字符问题#81
Closed
LyKoiya wants to merge 9 commits intotinymins:masterfrom
Hidden character warning
The head ref may contain hidden characters: "fix--\u4fee\u590d\u56e2\u961f\u76d1\u63a7\u4e2d\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u558a\u8bdd\u4e8b\u4ef6\u7684\u591a\u6bb5\u5012\u8ba1\u65f6\u6761\u672a\u66ff\u6362{$1}\u6a21\u677f\u5b57\u7b26\u95ee\u9898"
Closed
fix: 修复团队监控中使用正则表达式喊话事件的多段倒计时条未替换{$1}模板字符问题#81LyKoiya wants to merge 9 commits intotinymins:masterfrom
LyKoiya wants to merge 9 commits intotinymins:masterfrom
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR fixes an issue where regex template characters like {$1} were not being replaced in multi-segment countdown timers within team monitoring voice events. The problem occurred because the nTime field wasn't receiving special handling for aBackreferences parameter replacement.
Key changes:
- Added template string replacement for
nTimefield when it contains regex placeholders - Modified countdown expiry logic to handle forced refresh scenarios
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| MY_TeamMon.lua | Added template string filtering for nTime field to resolve regex placeholder replacement |
| MY_TeamMon_SpellTimer.lua | Updated countdown expiry logic for forced refresh cases |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
210ba41 to
f8aab47
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
解决喊话事件正则表达式模板字符未替换问题,在喊话事件中多段倒计时条中含有{$1}等正则模板字符则因nTime未特殊传入aBackreferences参数导致替换为空白