hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 3038464ea6f931c8a08ee49d47f1eaec99ba4817
parent 526b5b1c4986d43d6184671b02f45ca40f041b65
Author: Anthony Fok <foka@debian.org>
Date:   Tue, 29 Jan 2019 05:38:36 -0700

Accept hyphen and plus sign in emoji detection

Fixes #5635

Diffstat:
Mparser/pageparser/pagelexer.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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
 		}
 	}