Skip to content
This repository has been archived by the owner on Sep 29, 2020. It is now read-only.

Commit

Permalink
Fix issue where some emojis slip by
Browse files Browse the repository at this point in the history
Aparently they can be uppercase, too. Huh.
  • Loading branch information
Headline committed Aug 18, 2017
1 parent 551d77c commit db56134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IRC-Relay/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public static string EmojiToName(string input, SocketUserMessage message)
{
string returnString = input;

Regex regex = new Regex("<:[a-z]+:[0-9]+>");
Regex regex = new Regex("<:[A-Za-z]+:[0-9]+>");
Match match = regex.Match(input);
if (match.Success) // contains a mention
{
Expand Down

0 comments on commit db56134

Please sign in to comment.