Relax check for valid command name in access_persmissions

This commit is contained in:
Paweł Chmielowski 2018-05-11 12:24:00 +02:00
parent 338d27b45b
commit 6ac8f6eaee
1 changed files with 1 additions and 1 deletions

View File

@ -506,7 +506,7 @@ is_valid_command_name2(<<>>) ->
true;
is_valid_command_name2(<<K:8, Rest/binary>>) when (K >= $a andalso K =< $z)
orelse (K >= $0 andalso K =< $9)
orelse K == $_ ->
orelse K == $_ orelse K == $- ->
is_valid_command_name2(Rest);
is_valid_command_name2(_) ->
false.