vendor: Fix Humanize for multi-byte runes

Fixes #4133
This commit is contained in:
Bjørn Erik Pedersen 2017-11-28 21:16:01 +01:00
parent 7989210120
commit e7652180a1
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
2 changed files with 2 additions and 1 deletions

2
Gopkg.lock generated
View file

@ -147,7 +147,7 @@
branch = "master"
name = "github.com/markbates/inflect"
packages = ["."]
revision = "ea17041f342f81e8849284b87bc3db1a6fc596bb"
revision = "54ffb37507cd7d2ccd4768855e84f9ff6c4352b6"
[[projects]]
name = "github.com/miekg/mmark"

View file

@ -19,6 +19,7 @@ func TestInflect(t *testing.T) {
expect interface{}
}{
{ns.Humanize, "MyCamel", "My camel"},
{ns.Humanize, "óbito", "Óbito"},
{ns.Humanize, "", ""},
{ns.Humanize, "103", "103rd"},
{ns.Humanize, "41", "41st"},