geforkt von Mirrors/FastAsyncWorldEdit
Fix for '//mask ?' resulting in pattern error
Dieser Commit ist enthalten in:
Ursprung
34c8ecc694
Commit
767607ea68
@ -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());
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren