esamattis / esamattis/underscore.string

problem with humanize on camel cased string

Open
#289 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
3.4k
Forks
367
PR merge metrics
No merged PRs in 30d

Description

Hello,

I noticed an interesting behavior in the _.humanize() method. When you have a camel cased string such as "eatABurrito" I would expect humanize to return "Eat a burrito" to be returned. Instead I get "Eat aburrito". For example:

```
_.humanize('thisIsATest')
=> 'This is atest'
// expected 'This is a test'
```

Thanks!

-- Dylan

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.