From 2cc49a53a41ce691cd9fe27b7f33907a5af0ed34 Mon Sep 17 00:00:00 2001 From: Pepe Fagoaga Date: Tue, 3 Sep 2024 09:31:46 +0200 Subject: [PATCH] fix(test): something with `^bot` should not match --- tests/plugins/telegram_token_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/plugins/telegram_token_test.py b/tests/plugins/telegram_token_test.py index d3abea1f..3c62e8da 100644 --- a/tests/plugins/telegram_token_test.py +++ b/tests/plugins/telegram_token_test.py @@ -8,7 +8,7 @@ class TestTelegramTokenDetector: @pytest.mark.parametrize( 'payload, should_flag', [ - ('110201543:AAHdqTcvCH1vGWJxfSe1ofSAs0K5PALDsaw', True), + ('bot110201543:AAHdqTcvCH1vGWJxfSe1ofSAs0K5PALDsaw', False), ('110201543:AAHdqTcvCH1vGWJxfSe1ofSAs0K5PALDsaw', True), ('7213808860:AAH1bjqpKKW3maRSPAxzIU-0v6xNuq2-NjM', True), ('foo:AAH1bjqpKKW3maRSPAxzIU-0v6xNuq2-NjM', False),