aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillermo Ramos2019-06-25 16:19:36 +0200
committerGuillermo Ramos2019-06-25 16:19:36 +0200
commit6d290219a68e2aff22873ec3cb9ceac1b9407311 (patch)
tree9f5aafb121af2024867a44cbc41bc502fc69ac99
parent7c0885596727fbe6713bbe8ac381e0b56f127380 (diff)
downloadtgutils-6d290219a68e2aff22873ec3cb9ceac1b9407311.tar.gz
Fix token regex
-rw-r--r--lib/TgLib.pm2
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;
}