diff options
author | Guillermo Ramos | 2019-06-25 16:22:09 +0200 |
---|---|---|
committer | Guillermo Ramos | 2019-06-25 16:22:09 +0200 |
commit | 969138e2a115c6a4cbff9890f060f6aa6006b05b (patch) | |
tree | faaa2ab74b341639ffeb453c6c7c76960bb76b1f | |
parent | a0504dea781b267010fcb4dfd05cca6cb98c98f5 (diff) | |
download | tgutils-969138e2a115c6a4cbff9890f060f6aa6006b05b.tar.gz |
Dash also accepted in tokens
-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 c87af30..0fcae6c 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; } |