mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2026-02-25 17:41:13 +01:00
only flag spaces if we haven't met an underscore
This commit is contained in:
@@ -87,8 +87,8 @@ public final class CharsReplacer implements Replacer {
|
||||
for (int i = startPlaceholder + 1; i < endPlaceholder; i++) {
|
||||
final char current = text.charAt(i);
|
||||
|
||||
if (current == ' ') {
|
||||
// Invalid placeholder (contains space).
|
||||
if (current == ' ' && underscoreIndex == -1) {
|
||||
// Invalid placeholder (contains space before _).
|
||||
// Treat the opening symbol as literal text and search for the next one.
|
||||
builder.append(head);
|
||||
cursor = startPlaceholder + 1;
|
||||
|
||||
Reference in New Issue
Block a user