From fad1fcd8ee78bec9d9fcafda0b8b08608f21c192 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Sat, 18 Sep 2021 15:07:41 +0100 Subject: [PATCH] Fix RichParser suggestions --- .../core/extension/factory/parser/RichParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extension/factory/parser/RichParser.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extension/factory/parser/RichParser.java index 3f06df9a9..2c6d27815 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extension/factory/parser/RichParser.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extension/factory/parser/RichParser.java @@ -51,7 +51,7 @@ public abstract class RichParser extends InputParser implements AliasedPar @Nonnull private Function> extractArguments(String input) { return prefix -> { - if (input.length() > prefix.length() && prefix.startsWith(input + "[")) { + if (input.length() > prefix.length() && input.startsWith(prefix + "[")) { // input already contains argument(s) -> extract them String[] strings = extractArguments(input.substring(prefix.length()), false); // rebuild the argument string without the last argument