Fix empty strings not being quoted
This commit is contained in:
parent
1c05d3d2cd
commit
c2a26dacc2
@ -2292,7 +2292,7 @@ public class DisguiseUtilities {
|
|||||||
return list.toArray(new String[0]);
|
return list.toArray(new String[0]);
|
||||||
}*/
|
}*/
|
||||||
public static String quote(String string) {
|
public static String quote(String string) {
|
||||||
if (!string.contains(" ") && !string.startsWith("\"") && !string.endsWith("\"")) {
|
if (!string.isEmpty() && !string.contains(" ") && !string.startsWith("\"") && !string.endsWith("\"")) {
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user