Fix command argument not accepting characters _ and -

Signed-off-by: Irmo van den Berge <irmo.vandenberge@ziggo.nl>
This commit is contained in:
Irmo van den Berge 2020-12-20 18:49:29 +01:00 committed by Alexander Söderberg
parent b29d1ae5d1
commit 4556f12b6d

View file

@ -54,7 +54,7 @@ public class CommandArgument<C, T> implements Comparable<CommandArgument<?, ?>>
/** /**
* Pattern for command argument names * Pattern for command argument names
*/ */
private static final Pattern NAME_PATTERN = Pattern.compile("[A-Za-z0-9]+"); private static final Pattern NAME_PATTERN = Pattern.compile("[A-Za-z0-9\\-_]+");
/** /**
* Indicates whether or not the argument is required * Indicates whether or not the argument is required