Skip to content

Commit

Permalink
contributors: capitalize user input on suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
zzacharo committed Aug 7, 2024
1 parent 30e3101 commit 3e5456d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ function cdsFormCtrl($scope, $http, $q) {
}

var authorObj = {
name: authorName[1].trim() + ", " + authorName[2].trim(),
name:
_.capitalize(authorName[1].trim()) +
", " +
_.capitalize(authorName[2].trim()),
};

return formAuthor(authorObj);
Expand Down

0 comments on commit 3e5456d

Please sign in to comment.