projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
526b5b1
)
Accept hyphen and plus sign in emoji detection
author
Anthony Fok
<foka@debian.org>
Tue, 29 Jan 2019 12:38:36 +0000
(
05:38
-0700)
committer
Anthony Fok
<foka@debian.org>
Tue, 29 Jan 2019 12:38:36 +0000
(
05:38
-0700)
Fixes #5635
parser/pageparser/pagelexer.go
patch
|
blob
|
history
diff --git
a/parser/pageparser/pagelexer.go
b/parser/pageparser/pagelexer.go
index 5ee4fbf941b089140a9fce0e4c9a69c01beda0f9..11723f279928a01a8465b3bb0c5ec87228b1ca41 100644
(file)
--- 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
}
}