Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 18:40:05 +01:00
Correct handling of arguments where the arg is a quotation character followed by a space. Fixes WORLDEDIT-2633
Dieser Commit ist enthalten in:
Ursprung
9bb7968358
Commit
b48c735d2e
@ -79,7 +79,7 @@ public class CommandContext {
|
|||||||
int endIndex;
|
int endIndex;
|
||||||
for (endIndex = i; endIndex < args.length; ++endIndex) {
|
for (endIndex = i; endIndex < args.length; ++endIndex) {
|
||||||
final String arg2 = args[endIndex];
|
final String arg2 = args[endIndex];
|
||||||
if (arg2.charAt(arg2.length() - 1) == quotedChar) {
|
if (arg2.charAt(arg2.length() - 1) == quotedChar && arg2.length() > 1) {
|
||||||
if (endIndex != i) build.append(' ');
|
if (endIndex != i) build.append(' ');
|
||||||
build.append(arg2.substring(endIndex == i ? 1 : 0, arg2.length() - 1));
|
build.append(arg2.substring(endIndex == i ? 1 : 0, arg2.length() - 1));
|
||||||
break;
|
break;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren