DiscordSRV

DiscordSRV

86.8k Downloads

Cannot filter out console lines with regex

Malbeth81 opened this issue ยท 1 comments

commented

Your examples in https://github.com/DiscordSRV/DiscordSRV/wiki/Configuration-examples#block-special-console-output-from-appearing-in-console-channel seem to show that we can use
DiscordConsoleChannelRegexFilter with a blank DiscordConsoleChannelRegexReplacement to remove lines that match a certain regex, but in practice that is impossible because there is an "isBlank" check done on the replacement:

if (StringUtils.isNotBlank(regexFilter) && StringUtils.isNotBlank(regexReplacement)) {

Please remove that isBlank check so we can use it to filter out lines by regex and not just with certain words.

Thanks!

commented