mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-23 16:41:35 +01:00
Prevent quote(s) in the middle of inputs
This commit is contained in:
parent
060a148b60
commit
60dc164cdc
@ -44,8 +44,7 @@ public class ArgumentString extends Argument<String> {
|
||||
public static String staticParse(@NotNull String input) throws ArgumentSyntaxException {
|
||||
|
||||
// Return if not quoted
|
||||
if (!input.startsWith(String.valueOf(StringUtil.DOUBLE_QUOTE)) &&
|
||||
!input.endsWith(String.valueOf(StringUtil.DOUBLE_QUOTE)) &&
|
||||
if (!input.contains(String.valueOf(StringUtil.DOUBLE_QUOTE)) &&
|
||||
!input.contains(String.valueOf(StringUtil.SPACE))) {
|
||||
return input;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user