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:
@@ -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}**";
|
||||||
|
|||||||
Reference in New Issue
Block a user