committed by
GitHub
11 changed files with 37 additions and 24 deletions
@ -1 +1 @@ |
|||||
VERSION = '0.0.12-rc.2' |
VERSION = '0.0.12-rc.3' |
||||
|
@ -1,10 +0,0 @@ |
|||||
import re |
|
||||
|
|
||||
TOKEN_RE = re.compile(r'M\w{23}\.[\w-]{6}\..{27}') |
|
||||
|
|
||||
|
|
||||
def is_valid_token(token): |
|
||||
""" |
|
||||
Validates a Discord authentication token, returning true if valid. |
|
||||
""" |
|
||||
return bool(TOKEN_RE.match(token)) |
|
Loading…
Reference in new issue