Cobular / distest

A library used to do integration testing on discord bots
MIT License
29 stars 8 forks source link

validate_discord_token.py regex parser is outdated #45

Closed sean-keisuke closed 3 years ago

sean-keisuke commented 3 years ago
if not re.match(r"[MN][A-Za-z\d]{23}\.[\w-]{6}\.[\w-]{27}", token_value):

only allows tokens with prefix M or N. Current Discord tokens may provide new tokens that start with letter O.

sean-keisuke commented 3 years ago
if not re.match(r"[MN][A-Za-z\d]{23}\.[\w-]{6}\.[\w-]{27}", token_value):

only allows tokens with prefix M or N. Current Discord tokens may provide new tokens that start with letter O.

Screen Shot 2021-02-16 at 7 55 00 PM
Cobular commented 3 years ago

47