Adjust camelCase with simplified version (#1230)

* Adjust camelCase with simplified version

* Adjust count

* Adjust

* readability

* Ascii-only

* single-line callbacks

* CHANGELOG

* Dedupe string{Lower, Upper}First

* replacer -> fn
This commit is contained in:
Jaco
2021-11-22 16:12:29 +02:00
committed by GitHub
parent b390714285
commit 391ab49b8f
21 changed files with 187 additions and 102 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ describe('stringPascalCase', (): void => {
it('works correctly for String (class)', (): void => {
expect(
stringPascalCase(String('foo_bar-baz'))
).toBe('FooBarBaz');
stringPascalCase(String('foo_bar-- __baz Bob'))
).toBe('FooBarBazBob');
});
});