Fix command argument not accepting characters _ and -
Signed-off-by: Irmo van den Berge <irmo.vandenberge@ziggo.nl>
This commit is contained in:
parent
b29d1ae5d1
commit
4556f12b6d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue