Fixed missing special characters that can occur in an ExponentToken
Build & Publish to GHCR / build (push) Successful in 45s
Build & Publish to GHCR / build (push) Successful in 45s
This commit is contained in:
1 parent
559a9c913f
commit
cbf3c662a1
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -16,7 +16,7 @@ def is_valid_token(token: str) -> bool:
|
||||
Validates the format ExponentPushToken[<22-letter-long-string>]
|
||||
"""
|
||||
|
||||
pattern = r"^ExponentPushToken\[([A-Za-z0-9]{22})\]$"
|
||||
pattern = r"^ExponentPushToken\[([A-Za-z0-9_\-]{22})\]$"
|
||||
if not re.match(pattern, token):
|
||||
logger.debug(f"Invalid token format: {token}")
|
||||
return False
|
||||
|
||||
Reference in new issue
Block a user