Skip to content

Conversation

@ZXXX1999
Copy link
Contributor

解决喊话事件正则表达式模板字符未替换问题,在喊话事件中多段倒计时条中含有{$1}等正则模板字符则因nTime未特殊传入aBackreferences参数导致替换为空白

@tinymins tinymins requested a review from Copilot August 26, 2025 06:45
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 nTime field 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.

@tinymins tinymins force-pushed the master branch 2 times, most recently from 210ba41 to f8aab47 Compare September 5, 2025 17:33
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