Update goto.bash

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

View File

@ -102,7 +102,7 @@ function _goto_register_alias()
fi fi
if ! [[ $1 =~ ^[[:alnum:]]+[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 - can start with alphanumeric followed by alphanumeric, dashes or hyphens"
return return
fi fi