Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[问题] functions中的匹配内容替换优先级应大于变量 #398

Open
3 tasks done
Clexus opened this issue Apr 26, 2024 · 3 comments
Open
3 tasks done

[问题] functions中的匹配内容替换优先级应大于变量 #398

Clexus opened this issue Apr 26, 2024 · 3 comments
Labels
Bug | 漏洞 需要修复的错误

Comments

@Clexus
Copy link

Clexus commented Apr 26, 2024

是否已尝试最新的版本

  • 我已更新 TrChat 至最新的版本, 并且同样复现该问题.

是否已查阅 Wiki

  • 我已查阅 Wiki 对于该问题的相关内容, 并确定该问题是存在的.

如果使用跨服功能, 是否在代理端上安装了TrChat或使用redis转发?

  • 我已在代理端上安装了TrChat或使用redis转发

详细描述

  test:
    condition: ~
    pattern: '.*'
    display:
      text: '%revstr_{0}%'

revstr用来输出颠倒的字符串
输入:123
理论输出:321
实际输出: }0{

配置文件

日志

No response

服务器环境

无关

@Clexus Clexus added the Bug | 漏洞 需要修复的错误 label Apr 26, 2024
@ItsFlicker
Copy link

这样玩家就可以解析自己输入的papi了

@Clexus
Copy link
Author

Clexus commented Apr 27, 2024

这样玩家就可以解析自己输入的papi了

不会吧,直接输出原字符串不就行了吗

@ItsFlicker
Copy link

比如玩家输入%trmenu_js_...%
不过再加个%检测应该就行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug | 漏洞 需要修复的错误
Projects
None yet
Development

No branches or pull requests

2 participants