Skip to content

Commit

Permalink
Set the default emoji dictionaries capacity in their ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaily committed Jan 16, 2020
1 parent 8702318 commit 1cff102
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Markdig/Extensions/Emoji/EmojiMapping.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class EmojiMapping
/// </summary>
public static IDictionary<string, string> GetDefaultEmojiShortcodeToUnicode()
{
return new Dictionary<string, string>()
return new Dictionary<string, string>(1603)
{
{":100:", "💯"},
{":1234:", "🔢"},
Expand Down Expand Up @@ -1652,7 +1652,7 @@ public static IDictionary<string, string> GetDefaultEmojiShortcodeToUnicode()
/// </summary>
public static IDictionary<string, string> GetDefaultSmileyToEmojiShortcode()
{
return new Dictionary<string, string>()
return new Dictionary<string, string>(71)
{
{">:(", ":angry:"},
{">:-(", ":angry:"},
Expand Down

0 comments on commit 1cff102

Please sign in to comment.