Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/parser
diff options
context:
space:
mode:
authorAnthony Fok <foka@debian.org>2019-01-29 15:38:36 +0300
committerAnthony Fok <foka@debian.org>2019-01-29 15:38:36 +0300
commit3038464ea6f931c8a08ee49d47f1eaec99ba4817 (patch)
tree8966cb786b71073b090652e284fddb33bd907de2 /parser
parent526b5b1c4986d43d6184671b02f45ca40f041b65 (diff)
Accept hyphen and plus sign in emoji detection
Fixes #5635
Diffstat (limited to 'parser')
-rw-r--r--parser/pageparser/pagelexer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser/pageparser/pagelexer.go b/parser/pageparser/pagelexer.go
index 5ee4fbf94..11723f279 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
}
}