Add characters commonly use in links to Sanitize (#1152)

Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>
This commit is contained in:
Monica S
2021-11-26 15:41:08 +00:00
committed by GitHub
parent 51e06e9ce1
commit b9274d115d

View File

@@ -7,7 +7,8 @@ namespace Discord
public static class Format public static class Format
{ {
// Characters which need escaping // Characters which need escaping
private static readonly string[] SensitiveCharacters = { "\\", "*", "_", "~", "`", "|", ">" }; private static readonly string[] SensitiveCharacters = {
"\\", "*", "_", "~", "`", ".", ":", "/", ">", "|" };
/// <summary> Returns a markdown-formatted string with bold formatting. </summary> /// <summary> Returns a markdown-formatted string with bold formatting. </summary>
public static string Bold(string text) => $"**{text}**"; public static string Bold(string text) => $"**{text}**";