|
@@ -156,17 +156,13 @@ class GPT4o():
|
|
|
pw = match.group(1)
|
|
|
# 检查文本中是否包含英文字母
|
|
|
if re.search(r'[a-zA-Z]', pw):
|
|
|
- cleaned_text = re.sub(r'[a-zA-Z]', '', pw)
|
|
|
- else:
|
|
|
- cleaned_text = pw
|
|
|
- return cleaned_text
|
|
|
+ pw = re.sub(r'[a-zA-Z]', '', pw)
|
|
|
+ return pw
|
|
|
else:
|
|
|
if content:
|
|
|
if re.search(r'[a-zA-Z]', content):
|
|
|
- cleaned_text = re.sub(r'[a-zA-Z]', '', content)
|
|
|
- else:
|
|
|
- cleaned_text = content
|
|
|
- return cleaned_text
|
|
|
+ content = re.sub(r'[a-zA-Z]', '', content)
|
|
|
+ return content
|
|
|
if attempt == max_retries - 1:
|
|
|
return None
|
|
|
except Exception:
|