Skip to content

Commit

Permalink
Add characters commonly use in links to Sanitize (#1152)
Browse files Browse the repository at this point in the history
Co-authored-by: Quin Lynch <[email protected]>
  • Loading branch information
FiniteReality and quinchs committed Nov 26, 2021
1 parent 51e06e9 commit b9274d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Discord.Net.Core/Format.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ namespace Discord
public static class Format
{
// Characters which need escaping
private static readonly string[] SensitiveCharacters = { "\\", "*", "_", "~", "`", "|", ">" };
private static readonly string[] SensitiveCharacters = {
"\\", "*", "_", "~", "`", ".", ":", "/", ">", "|" };

/// <summary> Returns a markdown-formatted string with bold formatting. </summary>
public static string Bold(string text) => $"**{text}**";
Expand Down

0 comments on commit b9274d1

Please sign in to comment.