mirror of
https://github.com/iridakos/goto.git
synced 2025-05-16 23:40:16 -07:00
updated error message for invalid name on register
This commit is contained in:
parent
35f83adce4
commit
ae2c3b9084
@ -102,7 +102,7 @@ function _goto_register_alias()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if ! [[ $1 =~ ^[a-zA-Z0-9_-]*$ ]]; then
|
if ! [[ $1 =~ ^[a-zA-Z0-9_-]*$ ]]; then
|
||||||
_goto_error "invalid alias - only alphabetic with numbers"
|
_goto_error "invalid alias - only alphabetic with numbers, hyphens, and underscores"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user