Skip to content

Commit

Permalink
fix(test): something with ^bot should not match
Browse files Browse the repository at this point in the history
  • Loading branch information
jfagoagas authored Sep 3, 2024
1 parent 41f7746 commit 2cc49a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/plugins/telegram_token_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 2cc49a5

Please sign in to comment.