Don't return "=" pattern early either

This commit is contained in:
dordsor21 2021-09-21 15:07:58 +01:00
parent 70f7f00abf
commit 1de3a6b54a
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -73,7 +73,7 @@ public class RichPatternParser extends FaweParser<Pattern> {
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(