ref: 3038464ea6f931c8a08ee49d47f1eaec99ba4817
parent: 526b5b1c4986d43d6184671b02f45ca40f041b65
author: Anthony Fok <[email protected]>
date: Tue Jan 29 00:38:36 EST 2019
Accept hyphen and plus sign in emoji detection Fixes #5635
--- a/parser/pageparser/pagelexer.go
+++ b/parser/pageparser/pagelexer.go
@@ -223,7 +223,7 @@
break
}
r, _ := utf8.DecodeRune(l.input[i:])
- if !isAlphaNumeric(r) {
+ if !(isAlphaNumericOrHyphen(r) || r == '+') {
break
}
}