Files
modelscope-scepter/scepter/studio/tuner_manager/utils/path.py
T
2024-03-31 13:08:41 +08:00

10 lines
167 B
Python

# -*- coding: utf-8 -*-
import re
def is_valid_filename(filename):
if re.match('^[A-Za-z0-9_@]+$', filename):
return True
else:
return False