Add colon to the emote trim cutset
This enables parsing emotes in the format :emote: as defined in #9. This does not add auto-complete, just brings emote parsing up to date.
This commit is contained in:
parent
d2b8f3d7be
commit
f5ea701127
|
@ -11,7 +11,8 @@ var Emotes map[string]string
|
|||
func ParseEmotesArray(words []string) []string {
|
||||
newWords := []string{}
|
||||
for _, word := range words {
|
||||
word = strings.Trim(word, "[]")
|
||||
// make :emote: and [emote] valid for replacement.
|
||||
word = strings.Trim(word, ":[]")
|
||||
|
||||
found := false
|
||||
for key, val := range Emotes {
|
||||
|
|
Loading…
Reference in New Issue