From ededa490f985c2555cc3e4163007125d03d2d5bb Mon Sep 17 00:00:00 2001 From: FiniteReality Date: Sun, 23 Sep 2018 19:35:15 +0100 Subject: [PATCH] Add characters commonly use in links to Sanitize --- src/Discord.Net.Core/Format.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Discord.Net.Core/Format.cs b/src/Discord.Net.Core/Format.cs index 414e00a29..729e37a8c 100644 --- a/src/Discord.Net.Core/Format.cs +++ b/src/Discord.Net.Core/Format.cs @@ -3,7 +3,8 @@ namespace Discord public static class Format { // Characters which need escaping - private static readonly string[] SensitiveCharacters = { "\\", "*", "_", "~", "`" }; + private static readonly string[] SensitiveCharacters = { + "\\", "*", "_", "~", "`", ".", ":", "/" }; /// Returns a markdown-formatted string with bold formatting. public static string Bold(string text) => $"**{text}**";