10 lines
167 B
Python
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
|