This commit is contained in:
parent
f0792a3d21
commit
e944acaedd
@ -11,7 +11,7 @@ def is_valid_token(token: str) -> bool:
|
|||||||
Validates the format ExponentPushToken[<22-letter-long-string>]
|
Validates the format ExponentPushToken[<22-letter-long-string>]
|
||||||
"""
|
"""
|
||||||
|
|
||||||
pattern = r"^ExponentPushToken\[([A-Za-z]{22})\]$"
|
pattern = r"^ExponentPushToken\[([A-Za-z0-9]{22})\]$"
|
||||||
if not re.match(pattern, token):
|
if not re.match(pattern, token):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user