diff options
author | Guillermo Ramos | 2019-06-25 16:19:36 +0200 |
---|---|---|
committer | Guillermo Ramos | 2019-06-25 16:19:36 +0200 |
commit | 6d290219a68e2aff22873ec3cb9ceac1b9407311 (patch) | |
tree | 9f5aafb121af2024867a44cbc41bc502fc69ac99 | |
parent | 7c0885596727fbe6713bbe8ac381e0b56f127380 (diff) | |
download | tgutils-6d290219a68e2aff22873ec3cb9ceac1b9407311.tar.gz |
Fix token regex
-rw-r--r-- | lib/TgLib.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/TgLib.pm b/lib/TgLib.pm index 192d28a..c87af30 100644 --- a/lib/TgLib.pm +++ b/lib/TgLib.pm @@ -13,7 +13,7 @@ sub fetch_token { chomp $token; close $cfg; } - $token =~ /^[0-9]+:[a-zA-Z0-9]+$/ or die "Invalid bot token ($token)"; + $token =~ /^[0-9]+:[a-zA-Z0-9_]+$/ or die "Invalid bot token ($token)"; return $token; } |