mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
fix(proxy): only fix here/everyone if entire webhook name is matching
This commit is contained in:
parent
e525c2da63
commit
05aecf730a
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue