Files
modelscope-scepter/scepter/studio/tuner_manager/utils/path.py
T
2024-03-31 19:26:14 +08:00

11 lines
217 B
Python

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