fix(proxy): only fix here/everyone if entire webhook name is matching
This commit is contained in:
parent
e525c2da63
commit
05aecf730a
@ -266,10 +266,10 @@ public static class ProxyNameExt
|
|||||||
}
|
}
|
||||||
|
|
||||||
static string FixHere(this string name)
|
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)
|
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)
|
static string FixBackticks(this string name)
|
||||||
=> Regex.Replace(name, "(`)(``)", Replacement, RegexOptions.IgnoreCase);
|
=> Regex.Replace(name, "(`)(``)", Replacement, RegexOptions.IgnoreCase);
|
||||||
|
Loading…
Reference in New Issue
Block a user