mirror of
https://github.com/emojisum/emojisum.git
synced 2025-08-01 21:00:28 +00:00
main: make the Map use the first colon notation
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
a9e159d830
commit
7fea20724b
2 changed files with 9 additions and 3 deletions
|
@ -25,10 +25,10 @@ type VersionedMap struct {
|
|||
}
|
||||
|
||||
// Words are a set of options to represent an emoji.
|
||||
// Possible options could be the ":colon_notion:" or a "U+26CF" style codepoint.
|
||||
// Possible options could be the ":colon_notation:" or a "U+26CF" style codepoint.
|
||||
type Words []string
|
||||
|
||||
// IsColonNotation checks for whether a word is the :colon_notion: of emoji
|
||||
// IsColonNotation checks for whether a word is the :colon_notation: of emoji
|
||||
func IsColonNotation(word string) bool {
|
||||
return strings.HasPrefix(word, ":") && strings.HasSuffix(word, ":")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue