summaryrefslogtreecommitdiffstats
path: root/helpers/emoji_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-06-11 20:40:56 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-06-11 20:40:56 +0200
commit2564f46a685704c459bec5d0100f5111c138c9b4 (patch)
tree20782477361cc3710a5136e60cd8cd1000c9f59e /helpers/emoji_test.go
parent683888ebc89049d69042cdc5dc224884cd7903df (diff)
Fix Emojfy for certain text patterns
Fixes #2198
Diffstat (limited to 'helpers/emoji_test.go')
-rw-r--r--helpers/emoji_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/helpers/emoji_test.go b/helpers/emoji_test.go
index 98005511d..c4e6dcf89 100644
--- a/helpers/emoji_test.go
+++ b/helpers/emoji_test.go
@@ -44,7 +44,15 @@ func TestEmojiCustom(t *testing.T) {
{" The motto: no smiles! ", []byte(" The motto: no smiles! ")},
{":hugo_is_the_best_static_gen:", []byte(":hugo_is_the_best_static_gen:")},
{"은행 :smile: 은행", []byte("은행 😄 은행")},
+ // #2198
+ {"See: A :beer:!", []byte("See: A 🍺!")},
+ {`Aaaaaaaaaa: aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa.
+
+:beer:`, []byte(`Aaaaaaaaaa: aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa.
+
+🍺`)},
} {
+
result := Emojify([]byte(this.input))
if !reflect.DeepEqual(result, this.expect) {