mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-11-04 10:35:27 +08:00 
			
		
		
		
	Merge pull request #1691 from phil-scott-78/emoji-perf
This commit is contained in:
		@@ -18,7 +18,7 @@ namespace Spectre.Console
 | 
				
			|||||||
    public static partial class Emoji
 | 
					    public static partial class Emoji
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        private static readonly Dictionary<string, string> _emojis
 | 
					        private static readonly Dictionary<string, string> _emojis
 | 
				
			||||||
            = new Dictionary<string, string>(StringComparer.InvariantCultureIgnoreCase)
 | 
					            = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            {{~ for emoji in emojis ~}}
 | 
					            {{~ for emoji in emojis ~}}
 | 
				
			||||||
            { "{{ emoji.identifier }}", Emoji.Known.{{ emoji.name }} },
 | 
					            { "{{ emoji.identifier }}", Emoji.Known.{{ emoji.name }} },
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -18,7 +18,7 @@ namespace Spectre.Console
 | 
				
			|||||||
    public static partial class Emoji
 | 
					    public static partial class Emoji
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        private static readonly Dictionary<string, string> _emojis
 | 
					        private static readonly Dictionary<string, string> _emojis
 | 
				
			||||||
            = new Dictionary<string, string>(StringComparer.InvariantCultureIgnoreCase)
 | 
					            = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            { "abacus", Emoji.Known.Abacus },
 | 
					            { "abacus", Emoji.Known.Abacus },
 | 
				
			||||||
            { "ab_button_blood_type", Emoji.Known.AbButtonBloodType },
 | 
					            { "ab_button_blood_type", Emoji.Known.AbButtonBloodType },
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user