diff options
author | Jamie Tanna <jamie@jamietanna.co.uk> | 2019-10-05 21:08:45 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-10-05 23:58:53 +0300 |
commit | c466b88c998bc99e5d26e41cb67d87e1d4b976f5 (patch) | |
tree | 1711120240973b65370c775762260affcc2d7538 /tpl/transform | |
parent | 2df5d202c6fc6eb18ee0b259c3dd1156094947c5 (diff) |
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. (170f18d9352d39213170dd9d5e947eb45854c84b and
2df5d202c6fc6eb18ee0b259c3dd1156094947c5)
Diffstat (limited to 'tpl/transform')
-rw-r--r-- | tpl/transform/init.go | 2 | ||||
-rw-r--r-- | tpl/transform/transform_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tpl/transform/init.go b/tpl/transform/init.go index 62cb0a9c3..2783a513f 100644 --- a/tpl/transform/init.go +++ b/tpl/transform/init.go @@ -32,7 +32,7 @@ func init() { ns.AddMethodMapping(ctx.Emojify, []string{"emojify"}, [][2]string{ - {`{{ "I :heart: Hugo" | emojify }}`, `I ❤️ Hugo`}, + {`{{ "I :heart: Hugo" | emojify }}`, `I ❤ Hugo`}, }, ) diff --git a/tpl/transform/transform_test.go b/tpl/transform/transform_test.go index 13c4bbc29..10b020a0c 100644 --- a/tpl/transform/transform_test.go +++ b/tpl/transform/transform_test.go @@ -40,7 +40,7 @@ func TestEmojify(t *testing.T) { expect interface{} }{ {":notamoji:", template.HTML(":notamoji:")}, - {"I :heart: Hugo", template.HTML("I ❤️ Hugo")}, + {"I :heart: Hugo", template.HTML("I ❤ Hugo")}, // errors {tstNoStringer{}, false}, } { |