Accept hyphen and plus sign in emoji detection

Fixes #5635
This commit is contained in:
Anthony Fok 2019-01-29 05:38:36 -07:00
parent 526b5b1c49
commit 3038464ea6
No known key found for this signature in database
GPG key ID: EA2500B412C59ACF

View file

@ -223,7 +223,7 @@ func lexEmoji(l *pageLexer) stateFunc {
break
}
r, _ := utf8.DecodeRune(l.input[i:])
if !isAlphaNumeric(r) {
if !(isAlphaNumericOrHyphen(r) || r == '+') {
break
}
}