aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xgist2
1 files changed, 1 insertions, 1 deletions
diff --git a/gist b/gist
index c2f6e5f..c38d5b8 100755
--- a/gist
+++ b/gist
@@ -178,7 +178,7 @@ _ask_token() {
178 python -mwebbrowser https://github.com/settings/tokens/new?scopes=gist 178 python -mwebbrowser https://github.com/settings/tokens/new?scopes=gist
179 fi 179 fi
180 180
181 while [[ ! $token =~ ^[[:alnum:]]{40}$ ]]; do 181 while [[ ! $token =~ ^[[:alnum:]_-]{40,}$ ]]; do
182 [[ -n $token ]] && echo "Invalid token" 182 [[ -n $token ]] && echo "Invalid token"
183 read -r -p "Paste your token here (Ctrl-C to skip): " token </dev/tty 183 read -r -p "Paste your token here (Ctrl-C to skip): " token </dev/tty
184 done 184 done