geforkt von Mirrors/FastAsyncWorldEdit
Fix RichParser suggestions
Dieser Commit ist enthalten in:
Ursprung
54398ebe1c
Commit
fad1fcd8ee
@ -51,7 +51,7 @@ public abstract class RichParser<E> extends InputParser<E> implements AliasedPar
|
|||||||
@Nonnull
|
@Nonnull
|
||||||
private Function<String, Stream<? extends String>> extractArguments(String input) {
|
private Function<String, Stream<? extends String>> extractArguments(String input) {
|
||||||
return prefix -> {
|
return prefix -> {
|
||||||
if (input.length() > prefix.length() && prefix.startsWith(input + "[")) {
|
if (input.length() > prefix.length() && input.startsWith(prefix + "[")) {
|
||||||
// input already contains argument(s) -> extract them
|
// input already contains argument(s) -> extract them
|
||||||
String[] strings = extractArguments(input.substring(prefix.length()), false);
|
String[] strings = extractArguments(input.substring(prefix.length()), false);
|
||||||
// rebuild the argument string without the last argument
|
// rebuild the argument string without the last argument
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren