Browse Source

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

Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>
tags/3.0.0
Monica S GitHub 3 years ago
parent
commit
b9274d115d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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

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


Loading…
Cancel
Save