mirror of
https://github.com/iridakos/goto.git
synced 2025-05-16 15:30:22 -07:00
Remove redundant alpha class on the 2nd character.
This commit is contained in:
parent
1174ae13fb
commit
29a3bd6352
@ -101,7 +101,7 @@ function _goto_register_alias()
|
||||
return
|
||||
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."
|
||||
return
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user