From 3038464ea6f931c8a08ee49d47f1eaec99ba4817 Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Tue, 29 Jan 2019 05:38:36 -0700 Subject: [PATCH] Accept hyphen and plus sign in emoji detection Fixes #5635 --- parser/pageparser/pagelexer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/pageparser/pagelexer.go b/parser/pageparser/pagelexer.go index 5ee4fbf94..11723f279 100644 --- a/parser/pageparser/pagelexer.go +++ b/parser/pageparser/pagelexer.go @@ -223,7 +223,7 @@ func lexEmoji(l *pageLexer) stateFunc { break } r, _ := utf8.DecodeRune(l.input[i:]) - if !isAlphaNumeric(r) { + if !(isAlphaNumericOrHyphen(r) || r == '+') { break } }