mirror of
https://github.com/iridakos/goto.git
synced 2025-05-16 23:40:16 -07:00
Shorten message.
This commit is contained in:
parent
74af9ef9cc
commit
8aa08c36ab
@ -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 - can start with alphanumeric followed by alphanumeric, dashes or hyphens"
|
_goto_error "invalid alias - can start with letters or digits followed by letters, digits, hyphens or underscores"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user