We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6daa0c0 commit 448fa42Copy full SHA for 448fa42
src/utils/camelCase.js
@@ -3,9 +3,9 @@ import camelCase from 'to-camel-case';
3
const namespacer = '/';
4
5
export default type =>
6
- type.includes(namespacer)
7
- ? type
+ type.indexOf(namespacer) === -1
+ ? camelCase(type)
8
+ : type
9
.split(namespacer)
10
.map(camelCase)
- .join(namespacer)
11
- : camelCase(type);
+ .join(namespacer);
0 commit comments