Don't add any space around Emojis

This commit is contained in:
Bjørn Erik Pedersen
2016-05-09 22:59:49 +02:00
parent 608cfe62cf
commit 26906d8569
2 changed files with 20 additions and 18 deletions

View File

@@ -15,8 +15,9 @@ package helpers
import (
"bytes"
"github.com/kyokomi/emoji"
"sync"
"github.com/kyokomi/emoji"
)
var (
@@ -85,7 +86,7 @@ func initEmoji() {
emojiMap := emoji.CodeMap()
for k, v := range emojiMap {
emojis[k] = []byte(v + emoji.ReplacePadding)
emojis[k] = []byte(v)
if len(k) > emojiMaxSize {
emojiMaxSize = len(k)