mirror of
https://github.com/iridakos/goto.git
synced 2025-05-16 15:30:22 -07:00
Update goto.bash
This commit is contained in:
parent
29a3bd6352
commit
74af9ef9cc
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user