From 29a3bd635215afee9fd1ece83c171840272e0948 Mon Sep 17 00:00:00 2001 From: Lazarus Lazaridis Date: Tue, 6 Mar 2018 22:21:24 +0200 Subject: [PATCH] Remove redundant alpha class on the 2nd character. --- goto.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goto.bash b/goto.bash index 3839848..77f0e80 100644 --- a/goto.bash +++ b/goto.bash @@ -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