Fix empty strings not being quoted

This commit is contained in:
libraryaddict 2022-02-27 12:41:54 +13:00
parent 1c05d3d2cd
commit c2a26dacc2

View File

@ -2292,7 +2292,7 @@ public class DisguiseUtilities {
return list.toArray(new String[0]);
}*/
public static String quote(String string) {
if (!string.contains(" ") && !string.startsWith("\"") && !string.endsWith("\"")) {
if (!string.isEmpty() && !string.contains(" ") && !string.startsWith("\"") && !string.endsWith("\"")) {
return string;
}