We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c81f73a commit 7885b03Copy full SHA for 7885b03
1 file changed
eternalcombat-plugin/src/main/java/com/eternalcode/combat/time/DurationFormatter.java
@@ -89,6 +89,7 @@ private static Token[] parsePattern(String pattern) {
89
throw new IllegalArgumentException("Incomplete placeholder in pattern");
90
}
91
92
+
93
char symbol = pattern.charAt(i);
94
DurationUnit unit = DurationUnit.fromSymbol(symbol);
95
@@ -97,7 +98,7 @@ private static Token[] parsePattern(String pattern) {
97
98
throw new IllegalArgumentException("Missing plural definition after %" + symbol);
99
100
- boolean spaceBetween = braceIndex > i;
101
+ boolean spaceBetween = braceIndex > i + 1;
102
103
int start = braceIndex + 1;
104
int end = pattern.indexOf('}', start);
0 commit comments