We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bed031 commit cc5ac40Copy full SHA for cc5ac40
other-languages/en-US/glm.py
@@ -49,7 +49,7 @@ def set_token(token, yes=False):
49
50
# == 添加 ==
51
# --- Token 检查 ---
52
- if not token.startswith('ghp_') and not yes:
+ if not (token.startswith("ghp_") and token.startwith("github_pat_") and yes):
53
print(f"{Fore.YELLOW}⚠{Fore.RESET} Please check whether the Token is correct.")
54
try:
55
input(f"Press {Fore.BLUE}Enter{Fore.RESET} to confirm, press {Fore.BLUE}Ctrl + C{Fore.RESET} to cancel...")
0 commit comments