Browse Source

Add characters commonly use in links to Sanitize

pull/1152/head
FiniteReality 6 years ago
parent
commit
ededa490f9
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/Discord.Net.Core/Format.cs

+ 2
- 1
src/Discord.Net.Core/Format.cs View File

@@ -3,7 +3,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}**";


Loading…
Cancel
Save