added ability to use hyphen and underscore in names

This commit is contained in:
Jeff Cave 2018-03-05 19:45:28 -05:00
parent 21f4f2b060
commit 35f83adce4

View File

@ -101,7 +101,7 @@ function _goto_register_alias()
return return
fi fi
if ! [[ $1 =~ ^[[:alnum:]]*[[:alpha:]][[:alnum:]]*$ ]]; then if ! [[ $1 =~ ^[a-zA-Z0-9_-]*$ ]]; then
_goto_error "invalid alias - only alphabetic with numbers" _goto_error "invalid alias - only alphabetic with numbers"
return return
fi fi