Skip to content

Commit

Permalink
[F] Fix formatting last character not displaying issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hykilpikonna committed Dec 25, 2018
1 parent 31b00bd commit 185249a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/cc/moecraft/logger/utils/FormatUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ public static String resolve(String format, Object... args)
result.append(format.charAt(i));
}

String last = format.substring(format.length() - 2);
if (!last.equals("{}")) result.append(last.charAt(1));

return result.toString();
}
}

0 comments on commit 185249a

Please sign in to comment.