@@ -65,7 +65,7 @@ def get_emoji(name: str) -> EmojiValue:
6565 "check" : EmojiFormats (slack = ["white_check_mark" , "heavy_check_mark" ], gchat = ["✅" , "✔️" ]),
6666 "x" : EmojiFormats (slack = ["x" , "heavy_multiplication_x" ], gchat = ["❌" , "✖️" ]),
6767 "question" : EmojiFormats (slack = "question" , gchat = ["❓" , "?" ]),
68- "exclamation" : EmojiFormats (slack = "exclamation" , gchat = [ "❗" , "!" ] ),
68+ "exclamation" : EmojiFormats (slack = "exclamation" , gchat = "❗" ),
6969 "warning" : EmojiFormats (slack = "warning" , gchat = "⚠️" ),
7070 "stop" : EmojiFormats (slack = "octagonal_sign" , gchat = "🛑" ),
7171 "info" : EmojiFormats (slack = "information_source" , gchat = "ℹ️" ),
@@ -104,7 +104,7 @@ def get_emoji(name: str) -> EmojiValue:
104104 "key" : EmojiFormats (slack = "key" , gchat = "🔑" ),
105105 "pin" : EmojiFormats (slack = "pushpin" , gchat = "📌" ),
106106 "bell" : EmojiFormats (slack = "bell" , gchat = "🔔" ),
107- "megaphone" : EmojiFormats (slack = "mega" , gchat = "📣 " ),
107+ "megaphone" : EmojiFormats (slack = "mega" , gchat = "📢 " ),
108108 "loudspeaker" : EmojiFormats (slack = "loudspeaker" , gchat = "📢" ),
109109 "speech_bubble" : EmojiFormats (slack = "speech_balloon" , gchat = "💬" ),
110110 "clipboard" : EmojiFormats (slack = "clipboard" , gchat = "📋" ),
@@ -193,7 +193,12 @@ def from_slack(self, slack_emoji: str) -> EmojiValue:
193193
194194 Returns an EmojiValue for the raw emoji if no mapping exists.
195195 """
196- cleaned = slack_emoji .strip (":" ).lower ()
196+ cleaned = slack_emoji .lower ()
197+ # Strip at most one colon from each end (avoid stripping interior colons)
198+ if cleaned .startswith (":" ):
199+ cleaned = cleaned [1 :]
200+ if cleaned .endswith (":" ):
201+ cleaned = cleaned [:- 1 ]
197202 normalized = self ._slack_to_normalized .get (cleaned , slack_emoji )
198203 return get_emoji (normalized )
199204
0 commit comments