mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
deps: Upgrade to latest version of emoji dependency
To add support for new emojis in Hugo, we need to upgrade our internal dependency on the emoji package. Note that we also need to update our tests, as the underlying emoji that is rendered has changed. Follow-up to #6391. (170f18d935
and2df5d202c6
)
This commit is contained in:
parent
2df5d202c6
commit
c466b88c99
5 changed files with 6 additions and 4 deletions
|
@ -4109,7 +4109,7 @@
|
||||||
"Examples": [
|
"Examples": [
|
||||||
[
|
[
|
||||||
"{{ \"I :heart: Hugo\" | emojify }}",
|
"{{ \"I :heart: Hugo\" | emojify }}",
|
||||||
"I ❤️ Hugo"
|
"I ❤ Hugo"
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -25,7 +25,7 @@ require (
|
||||||
github.com/google/go-cmp v0.3.1
|
github.com/google/go-cmp v0.3.1
|
||||||
github.com/gorilla/websocket v1.4.0
|
github.com/gorilla/websocket v1.4.0
|
||||||
github.com/jdkato/prose v1.1.0
|
github.com/jdkato/prose v1.1.0
|
||||||
github.com/kyokomi/emoji v1.5.1
|
github.com/kyokomi/emoji v2.1.0+incompatible
|
||||||
github.com/magefile/mage v1.4.0
|
github.com/magefile/mage v1.4.0
|
||||||
github.com/magiconair/properties v1.8.1 // indirect
|
github.com/magiconair/properties v1.8.1 // indirect
|
||||||
github.com/markbates/inflect v1.0.0
|
github.com/markbates/inflect v1.0.0
|
||||||
|
|
2
go.sum
2
go.sum
|
@ -205,6 +205,8 @@ github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
|
||||||
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
||||||
github.com/kyokomi/emoji v1.5.1 h1:qp9dub1mW7C4MlvoRENH6EAENb9skEFOvIEbp1Waj38=
|
github.com/kyokomi/emoji v1.5.1 h1:qp9dub1mW7C4MlvoRENH6EAENb9skEFOvIEbp1Waj38=
|
||||||
github.com/kyokomi/emoji v1.5.1/go.mod h1:mZ6aGCD7yk8j6QY6KICwnZ2pxoszVseX1DNoGtU2tBA=
|
github.com/kyokomi/emoji v1.5.1/go.mod h1:mZ6aGCD7yk8j6QY6KICwnZ2pxoszVseX1DNoGtU2tBA=
|
||||||
|
github.com/kyokomi/emoji v2.1.0+incompatible h1:+DYU2RgpI6OHG4oQkM5KlqD3Wd3UPEsX8jamTo1Mp6o=
|
||||||
|
github.com/kyokomi/emoji v2.1.0+incompatible/go.mod h1:mZ6aGCD7yk8j6QY6KICwnZ2pxoszVseX1DNoGtU2tBA=
|
||||||
github.com/lib/pq v1.1.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
|
github.com/lib/pq v1.1.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
|
||||||
github.com/magefile/mage v1.4.0 h1:RI7B1CgnPAuu2O9lWszwya61RLmfL0KCdo+QyyI/Bhk=
|
github.com/magefile/mage v1.4.0 h1:RI7B1CgnPAuu2O9lWszwya61RLmfL0KCdo+QyyI/Bhk=
|
||||||
github.com/magefile/mage v1.4.0/go.mod h1:IUDi13rsHje59lecXokTfGX0QIzO45uVPlXnJYsXepA=
|
github.com/magefile/mage v1.4.0/go.mod h1:IUDi13rsHje59lecXokTfGX0QIzO45uVPlXnJYsXepA=
|
||||||
|
|
|
@ -32,7 +32,7 @@ func init() {
|
||||||
ns.AddMethodMapping(ctx.Emojify,
|
ns.AddMethodMapping(ctx.Emojify,
|
||||||
[]string{"emojify"},
|
[]string{"emojify"},
|
||||||
[][2]string{
|
[][2]string{
|
||||||
{`{{ "I :heart: Hugo" | emojify }}`, `I ❤️ Hugo`},
|
{`{{ "I :heart: Hugo" | emojify }}`, `I ❤ Hugo`},
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ func TestEmojify(t *testing.T) {
|
||||||
expect interface{}
|
expect interface{}
|
||||||
}{
|
}{
|
||||||
{":notamoji:", template.HTML(":notamoji:")},
|
{":notamoji:", template.HTML(":notamoji:")},
|
||||||
{"I :heart: Hugo", template.HTML("I ❤️ Hugo")},
|
{"I :heart: Hugo", template.HTML("I ❤ Hugo")},
|
||||||
// errors
|
// errors
|
||||||
{tstNoStringer{}, false},
|
{tstNoStringer{}, false},
|
||||||
} {
|
} {
|
||||||
|
|
Loading…
Reference in a new issue