Skip to content

Commit 8fc19c3

Browse files
Replaced " " with "▁"
1 parent f4bbd89 commit 8fc19c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/net/javadiscord/javabot/util/StringUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public static String buildProgressBar(double current, double max, String off, St
7474
/**
7575
* Builds a progress bar that uses block characters.
7676
* <p>
77-
* For example: <pre>[███████ ]</pre>
77+
* For example: <pre>[███████▁▁▁▁]</pre>
7878
* </p>
7979
*
8080
* @param value The floating-point value. This should be between 0 and 1,
@@ -94,7 +94,7 @@ public static String buildTextProgressBar(double value, int length) {
9494
double elementsFilled = barElements * value;
9595
int wholeElementsFilled = (int) Math.floor(elementsFilled);
9696
sb.append("█".repeat(wholeElementsFilled));
97-
sb.append(" ".repeat(barElements - wholeElementsFilled));
97+
sb.append("".repeat(barElements - wholeElementsFilled));
9898
sb.append(']');
9999
return sb.toString();
100100
}

0 commit comments

Comments
 (0)