@@ -35,8 +35,6 @@ def test_discord_invite_positives(self):
35
35
self .assertEqual (match_regex ("www.discord.com/invite/python" ), "python" )
36
36
self .assertEqual (match_regex ("discordapp.com/invite/python" ), "python" )
37
37
self .assertEqual (match_regex ("discord.me/python" ), "python" )
38
- self .assertEqual (match_regex ("discord.li/python" ), "python" )
39
- self .assertEqual (match_regex ("discord.io/python" ), "python" )
40
38
self .assertEqual (match_regex (".gg/python" ), "python" )
41
39
42
40
self .assertEqual (match_regex ("discord.gg/python/but/extra" ), "python/but/extra" )
@@ -56,9 +54,17 @@ def test_discord_invite_negatives(self):
56
54
57
55
self .assertEqual (match_regex ("another string" ), None )
58
56
self .assertEqual (match_regex ("https://pythondiscord.com" ), None )
57
+ self .assertEqual (match_regex ("https://tenor.com/view/cat-scream-cat-rage-gif-8639900204413677493" ), None )
58
+ self .assertEqual (match_regex ("https://paste.pythondiscord.com/1234" ), None )
59
59
self .assertEqual (match_regex ("https://discord.com" ), None )
60
60
self .assertEqual (match_regex ("https://discord.gg" ), None )
61
61
self .assertEqual (match_regex ("https://discord.gg/ python" ), None )
62
+ self .assertEqual (search_regex ("https://discord.com/developers/applications" ), None )
63
+ self .assertEqual (
64
+ search_regex (
65
+ "https://discord.com/channels/267624335836053506/305126844661760000/1309985927287930892"
66
+ ), None
67
+ )
62
68
63
69
self .assertEqual (search_regex ("https://discord.com with whitespace" ), None )
64
70
self .assertEqual (search_regex (" https://discord.com " ), None )
0 commit comments