Skip to content

Commit be45494

Browse files
Merge pull request #1691 from phil-scott-78/emoji-perf
2 parents aa9e5c4 + 69689d2 commit be45494

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

resources/scripts/Generator/Templates/Emoji.Generated.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace Spectre.Console
1818
public static partial class Emoji
1919
{
2020
private static readonly Dictionary<string, string> _emojis
21-
= new Dictionary<string, string>(StringComparer.InvariantCultureIgnoreCase)
21+
= new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
2222
{
2323
{{~ for emoji in emojis ~}}
2424
{ "{{ emoji.identifier }}", Emoji.Known.{{ emoji.name }} },

src/Spectre.Console/Emoji.Generated.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace Spectre.Console
1818
public static partial class Emoji
1919
{
2020
private static readonly Dictionary<string, string> _emojis
21-
= new Dictionary<string, string>(StringComparer.InvariantCultureIgnoreCase)
21+
= new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
2222
{
2323
{ "abacus", Emoji.Known.Abacus },
2424
{ "ab_button_blood_type", Emoji.Known.AbButtonBloodType },

0 commit comments

Comments
 (0)