mirror of
https://github.com/RPCS3/discord-bot.git
synced 2024-12-12 05:06:14 +00:00
sacrifice up to 25% performance to clean up more garbage
This commit is contained in:
parent
c96c1c1673
commit
49390751f0
@ -45,7 +45,7 @@ namespace CompatBot.Database.Providers
|
||||
|
||||
if (result is null && ctx == FilterContext.Chat)
|
||||
{
|
||||
str = str.ToCanonicalForm();
|
||||
str = str.StripInvisible().ToCanonicalForm();
|
||||
matcher?.ParseText(str, h =>
|
||||
{
|
||||
if (string.IsNullOrEmpty(h.Value.ValidatingRegex) || Regex.IsMatch(str, h.Value.ValidatingRegex, RegexOptions.IgnoreCase | RegexOptions.Multiline))
|
||||
|
Loading…
Reference in New Issue
Block a user