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

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);