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

Dieser Commit ist enthalten in:
IronApollo 2018-10-29 06:39:40 -04:00
Ursprung 34c8ecc694
Commit 767607ea68

Datei anzeigen

@ -86,7 +86,7 @@ public class DefaultMaskParser extends FaweParser<Mask> {
if (charMask && input.charAt(0) == '=') { if (charMask && input.charAt(0) == '=') {
return parseFromInput(char0 + "[" + input.substring(1) + "]", context); return parseFromInput(char0 + "[" + input.substring(1) + "]", context);
} }
if (char0 == '#') { if (char0 == '#' || char0 == '?') {
throw new SuggestInputParseException(new NoMatchException("Unknown mask: " + full + ", See: //masks"), full, throw new SuggestInputParseException(new NoMatchException("Unknown mask: " + full + ", See: //masks"), full,
() -> { () -> {
if (full.length() == 1) return new ArrayList<>(dispatcher.getPrimaryAliases()); if (full.length() == 1) return new ArrayList<>(dispatcher.getPrimaryAliases());