Remove redundant alpha class on the 2nd character.

This commit is contained in:
Lazarus Lazaridis 2018-03-06 22:21:24 +02:00 committed by GitHub
parent 1174ae13fb
commit 29a3bd6352
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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