esamattis / esamattis/underscore.string
capitalize on string that start with a space is not working.
Open
- Dominant language
- JavaScript
- Stars
- 3.4k
- Forks
- 367
- PR merge metrics
- No merged PRs in 30d
Description
the following test wouldn't pass
```
const foo = ' my string';
expect(capitalize(foo)).toEqual('My string'); // not passing
```
as a developer I expected this test to pass, did you think of that case scenario?
Contributor guide
Assessment
This issue has not been assessed yet.