Skip to content

Commit f7ece2c

Browse files
committed
Add split option to README
1 parent 8db40c3 commit f7ece2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/change-case/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ All methods accept an `options` object as the second argument:
3737

3838
- `delimiter?: string` The character to use between words. Default depends on method, e.g. `_` in snake case.
3939
- `locale?: string[] | string | false` Lower/upper according to specified locale, defaults to host environment. Set to `false` to disable.
40-
- `separateNumbers?: boolean` Splits `foo123` into `foo 123` instead of keeping them together. Defaults to `false`.
40+
- `split?: (value: string) => string[]` A function to define how the input is split into words. Defaults to `split`.
4141
- `prefixCharacters?: string` Retain at the beginning of the string. Defaults to `""`. Example: use `"_"` to keep the underscores in `__typename`.
4242
- `suffixCharacters?: string` Retain at the end of the string. Defaults to `""`. Example: use `"_"` to keep the underscore in `type_`.
4343

0 commit comments

Comments
 (0)