Skip to content

Commit ca2bb21

Browse files
author
cbojar
committed
First, ucfirst is a method, not a parameter. Second, there is no need to ucfirst, then lowercase again. Intention seems to point to removing the toLowerCase().
1 parent 62f2a1f commit ca2bb21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎parse-names.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ function NameParse() {
184184
parts = word.split(seperator);
185185
for (var i=0; i<parts.length; i++) {
186186
var thisWord = parts[i];
187-
words[i] = (me.is_camel_case(thisWord)) ? thisWord : thisWord.ucfirst.toLowerCase();
187+
words[i] = (me.is_camel_case(thisWord)) ? thisWord : thisWord.ucfirst();
188188
}
189189
return words.join(seperator);
190190
};

0 commit comments

Comments
 (0)