Fix for '//mask ?' resulting in pattern error

This commit is contained in:
IronApollo 2018-10-29 06:39:40 -04:00
parent 34c8ecc694
commit 767607ea68

View File

@ -86,7 +86,7 @@ public class DefaultMaskParser extends FaweParser<Mask> {
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());