From 767607ea6873232719e0487e812ad7b690fe43cb Mon Sep 17 00:00:00 2001 From: IronApollo Date: Mon, 29 Oct 2018 06:39:40 -0400 Subject: [PATCH] Fix for '//mask ?' resulting in pattern error --- .../sk89q/worldedit/extension/factory/DefaultMaskParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/factory/DefaultMaskParser.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/factory/DefaultMaskParser.java index fb0ac344d..95248cd5b 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/factory/DefaultMaskParser.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/factory/DefaultMaskParser.java @@ -86,7 +86,7 @@ public class DefaultMaskParser extends FaweParser { if (charMask && input.charAt(0) == '=') { return parseFromInput(char0 + "[" + input.substring(1) + "]", context); } - if (char0 == '#') { + if (char0 == '#' || char0 == '?') { throw new SuggestInputParseException(new NoMatchException("Unknown mask: " + full + ", See: //masks"), full, () -> { if (full.length() == 1) return new ArrayList<>(dispatcher.getPrimaryAliases());