Skip to content

Commit

Permalink
Minor bug fixes from Discord testing
Browse files Browse the repository at this point in the history
  • Loading branch information
KillerOfPie committed Jun 3, 2021
1 parent e4c03d6 commit 7a25850
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ public String makeReadable() {
for (int i = 0; i < name().length(); i++) {
char ch = name().charAt(i);

if (i == 0 || (i > 0 && ret.charAt(i - 1) == ' '))
if (i == 0)
ret.append(Character.toUpperCase(ch));
else if (ret.charAt(i - 1) == ' ')
ret.append(Character.toUpperCase(ch));
else if (ch == '_')
ret.append(" ");
Expand Down

0 comments on commit 7a25850

Please sign in to comment.