Merge pull request #1 from LiteyukiStudio/eilles-main

🌟优化部分内容
This commit is contained in:
金羿ELS
2025-01-29 00:36:53 +08:00
committed by GitHub
parent 46c1721a84
commit 4f5cb89365
10 changed files with 142 additions and 105 deletions

View File

@ -15,6 +15,7 @@ def is_valid_filename(filename: str) -> bool:
bool: _description_
"""
# 检查文件名是否仅包含小写字母,数字,下划线
# 啊?文件名还不能有大写啊……
if not re.match(r"^[a-z0-9_]+\.py$", filename):
return False
else: