1
0
mirror of https://github.com/6dylan6/jdpro.git synced 2025-07-12 23:53:12 +08:00
This commit is contained in:
2024
2025-03-31 21:29:29 +08:00
parent 23b21979e1
commit 0f3965dc13

View File

@ -180,7 +180,7 @@ def get_token() -> str or None:
if 'keyv' in path:
with open(path, "r", encoding="latin1") as file:
auth = file.read()
matches = re.search(r'token":"([^"]+)"', auth)
matches = re.search(r'"token":"([^"]*)"(?!.*"token":)', auth)
token = matches.group(1)
else:
with open(path, "r") as file: