Cleaned up mention regex

This commit is contained in:
RogueException
2015-10-25 04:41:01 -03:00
parent 6da8256cc5
commit ce2aa72622

View File

@@ -6,8 +6,8 @@ namespace Discord
{
public static class Mention
{
private static readonly Regex _userRegex = new Regex(@"<@(\d+?)>", RegexOptions.Compiled);
private static readonly Regex _channelRegex = new Regex(@"<#(\d+?)>", RegexOptions.Compiled);
private static readonly Regex _userRegex = new Regex(@"<@(?:\d+?)>", RegexOptions.Compiled);
private static readonly Regex _channelRegex = new Regex(@"<#(?:\d+?)>", RegexOptions.Compiled);
/// <summary> Returns the string used to create a user mention. </summary>
public static string User(User user)