File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
src/main/java/net/dreamerzero/chatregulator/modules Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,12 @@ public Replacer(Yaml config){
88 this .config = config ;
99 }
1010 public String firstLetterUpercase (String string ){
11+ if (!config .getBoolean ("format.set-first-letter-uppercase" )) return string ;
1112 char firstCharacter = string .charAt (0 );
12- if (Character .isUpperCase (firstCharacter ) ||
13- !config .getBoolean ("format.set-first-letter-uppercase" )) {
14- return string ;
15- }
13+ if (Character .isUpperCase (firstCharacter )) return string ;
1614
1715 StringBuilder builder = new StringBuilder ();
18- builder .append (firstCharacter ).append (string .substring (1 ));
16+ builder .append (Character . toUpperCase ( firstCharacter ) ).append (string .substring (1 ));
1917 return builder .toString ();
2018 }
2119
You can’t perform that action at this time.
0 commit comments