Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

[BUG] %MATCH% is not replaced by "whatever triggered the filter" #15

Open
yodabird19 opened this issue Jul 1, 2022 · 1 comment
Open
Labels
bug Something isn't working

Comments

@yodabird19
Copy link

yodabird19 commented Jul 1, 2022

Describe the bug
%MATCH% is not replaced by whatever triggered the filter as stated.

Minecraft Info
fabric loader-0.14.6-1.18.2
fabric-api-0.53.3+1.18.2
AdvancedChatCore-1.18.2-1.5.0
AdvancedChatFilters-1.18.2-1.2.3

To Reproduce
Attempt to use %MATCH% in a filter's "Replace to" field.

Expected behavior
%MATCH% would be replaced by the text that triggered the filter.

Screenshots
image
An example filter attempting to use %MATCH%

image
Rollover text instructing me on how to use %MATCH%

image
The behavior of the example filter above, in which %MATCH% is replaced literally rather than with the text that triggered the filter

Additional context
I also tried "%Match%", "%match%", and "MATCH", none seem to work.

Thanks in advance for your help, this is a great mod! I hope this bug can be fixed soon.

@yodabird19 yodabird19 added the bug Something isn't working label Jul 1, 2022
@Sobsz
Copy link

Sobsz commented Apr 21, 2023

very late but when the type is set to regex you can use $0 (or wrap the desired fragment in brackets to mark a group and use $1)
doesn't work in literal/upper-lower sadly (even though #14 still happens with $1)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants