Skip to content
This repository was archived by the owner on Mar 30, 2021. It is now read-only.

Commit e41e4b6

Browse files
Merge pull request #13 from Nikhil-Vats/camelCaseBug
Fixed bad logic in generators/app/index.js
2 parents 5d4f7f1 + 2fd062d commit e41e4b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generators/app/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ function toCamelCase(aString) {
149149
var camelString = "";
150150
tokens.map(function(token, index) {
151151
if (index) {
152-
camelString += token[0]; // Keep the first letter of the first word as it is
153-
} else {
154152
camelString += token[0].toUpperCase(); // Capitalize the first letter of other words
153+
} else {
154+
camelString += token[0]; // Keep the first letter of the first word as it is
155155
}
156156

157157
camelString += token.substring(1, token.length);

0 commit comments

Comments
 (0)