Issue #980: Add support for Telegram Bot API Token (#981)

* Issue #980: Add support for Telegram Bot API Token

* Replace test with random bot_id length by tests with fixed one.
Add tests for the corner cases.

Co-authored-by: Alex Goncharov <b4bay@users.noreply.github.com>
This commit is contained in:
Alex GoncharovandAlex Goncharov authored and GitHub committed 2022-09-17 11:26:29 -04:00
1 parent 3f0293dab0
commit fc98cbf159
3 files changed
+67

No files matched your search

+9
View File
@@ -2585,6 +2585,15 @@ keywords = [
"sumo",
]
[[rules]]
description = "Telegram Bot API Token"
id = "telegram-bot-api-token"
regex = '''(?i)(?:^|[^0-9])([0-9]{5,16}:A[a-zA-Z0-9_\-]{34})(?:$|[^a-zA-Z0-9_\-])'''
secretGroup = 1
keywords = [
"telegram","api","bot","token","url",
]
[[rules]]
description = "Travis CI Access Token"
id = "travisci-access-token"