This commit is contained in:
2024
2025-03-31 21:25:57 +08:00
parent 89ef790a16
commit 23b21979e1
6 changed files with 14 additions and 19 deletions

View File

@@ -493,7 +493,7 @@ def main():
if 'keyv' in config:
with open(config, "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(config, "r") as file: