Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Sep 29, 2021
1 parent d44a15c commit ac12230
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
> Convert a camelized string into a lowercased one with a custom separator\
> Example: `unicornRainbow``unicorn_rainbow`
If you use this on untrusted user input, don't forget to limit the length to something reasonable.

## Install

```
Expand Down
1 change: 1 addition & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ test('decamelize', t => {
t.is(decamelize('thisIsATest', {separator: ' '}), 'this is a test');
t.is(decamelize('thisIsATest', {separator: ''}), 'thisisatest');
t.is(decamelize('unicornRainbow', {separator: '|'}), 'unicorn|rainbow');
t.is(decamelize('unicornRainbow', {separator: '-'}), 'unicorn-rainbow');
t.is(
decamelize('thisHasSpecialCharactersLikeČandŠ', {separator: ' '}),
'this has special characters like čand š'
Expand Down

0 comments on commit ac12230

Please sign in to comment.