Should be equals in checking if valid prefix when not shorter and with no arguments

This commit is contained in:
dordsor21 2021-11-16 12:48:09 +00:00
parent cf6f54bd28
commit 575b0035df
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -46,9 +46,9 @@ public abstract class RichParser<E> extends InputParser<E> implements AliasedPar
}
int i = other.indexOf('[');
if (i == -1) {
return other.startsWith(prefix);
return other.equals(prefix);
}
return other.substring(0, i).equalsIgnoreCase(prefix);
return other.substring(0, i).equals(prefix);
};
}