mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 22:07:55 +00:00
Sanitize more inputs
This commit is contained in:
parent
1988b29fbc
commit
83c709b69d
9 changed files with 37 additions and 37 deletions
|
|
@ -86,8 +86,8 @@ namespace PluralKit.Bot
|
|||
return false;
|
||||
}
|
||||
|
||||
public static string Sanitize(this string input) =>
|
||||
Regex.Replace(Regex.Replace(input, "<@[!&]?(\\d{17,19})>", "<\\@$1>"), "@(everyone|here)", "@\u200B$1");
|
||||
public static string SanitizeMentions(this string input) =>
|
||||
Regex.Replace(Regex.Replace(input, "<@[!&]?(\\d{17,19})>", "<\u200B@$1>"), "@(everyone|here)", "@\u200B$1");
|
||||
|
||||
public static string SanitizeEveryone(this string input) =>
|
||||
Regex.Replace(input, "@(everyone|here)", "@\u200B$1");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue