From 1de3a6b54a376eb68e37ebf983ed94728ae68fca Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Tue, 21 Sep 2021 15:07:58 +0100 Subject: [PATCH] Don't return "=" pattern early either --- .../extension/factory/parser/pattern/RichPatternParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extension/factory/parser/pattern/RichPatternParser.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extension/factory/parser/pattern/RichPatternParser.java index 377ea7fb0..f192cf720 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extension/factory/parser/pattern/RichPatternParser.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extension/factory/parser/pattern/RichPatternParser.java @@ -73,7 +73,7 @@ public class RichPatternParser extends FaweParser { char char0 = command.charAt(0); boolean charPattern = input.length() > 1 && input.charAt(1) != '['; if (charPattern && input.charAt(0) == '=') { - return parseFromInput(char0 + "[" + input.substring(1) + "]", context); + pattern = parseFromInput(char0 + "[" + input.substring(1) + "]", context); } if (char0 == '#' && command.length() > 1 && command.charAt(1) != '#') { throw new SuggestInputParseException(