From: Anthony Fok Date: Tue, 29 Jan 2019 12:38:36 +0000 (-0700) Subject: Accept hyphen and plus sign in emoji detection X-Git-Tag: v0.54.0~17 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3038464ea6f931c8a08ee49d47f1eaec99ba4817;p=brevno-suite%2Fhugo Accept hyphen and plus sign in emoji detection Fixes #5635 --- diff --git a/parser/pageparser/pagelexer.go b/parser/pageparser/pagelexer.go index 5ee4fbf9..11723f27 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 } }