fix(proxy): only fix here/everyone if entire webhook name is matching

This commit is contained in:
spiral 2022-09-24 15:35:45 +00:00
parent e525c2da63
commit 05aecf730a
No known key found for this signature in database
GPG Key ID: 244A11E4B0BCF40E

View File

@ -266,10 +266,10 @@ public static class ProxyNameExt
}
static string FixHere(this string name)
=> Regex.Replace(name, "(h)(ere)", Replacement, RegexOptions.IgnoreCase);
=> Regex.Replace(name, "^(h)(ere)$", Replacement, RegexOptions.IgnoreCase);
static string FixEveryone(this string name)
=> Regex.Replace(name, "(e)(veryone)", Replacement, RegexOptions.IgnoreCase);
=> Regex.Replace(name, "^(e)(veryone)$", Replacement, RegexOptions.IgnoreCase);
static string FixBackticks(this string name)
=> Regex.Replace(name, "(`)(``)", Replacement, RegexOptions.IgnoreCase);