From 04be98a806b9b97713cc88668fdfb0266491f657 Mon Sep 17 00:00:00 2001 From: Naymin Date: Tue, 16 Jan 2018 17:01:01 +0200 Subject: [PATCH] Update to recognise new tokens Tokens used to start with 'M' only, that's no longer the case --- disco/util/token.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disco/util/token.py b/disco/util/token.py index d71b93d..acdd505 100644 --- a/disco/util/token.py +++ b/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):