Browse Source
Update to recognise new tokens
Tokens used to start with 'M' only, that's no longer the case
pull/76/head
Naymin
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
disco/util/token.py
|
|
@ -1,6 +1,6 @@ |
|
|
|
import re |
|
|
|
|
|
|
|
TOKEN_RE = re.compile(r'M\w{23}\.[\w-]{6}\..{27}') |
|
|
|
TOKEN_RE = re.compile(r'\w{24}\.[\w-]{6}\..{27}') |
|
|
|
|
|
|
|
|
|
|
|
def is_valid_token(token): |
|
|
|