esamattis / esamattis/underscore.string

capitalize on string that start with a space is not working.

Open
#519 0 comments 0 reactions 0 assignees View on GitHub
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

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.