12 lines
292 B
Python
12 lines
292 B
Python
import os
|
|
import re
|
|
import settings
|
|
|
|
__author__ = 'Roman Timashev'
|
|
|
|
__check_description_filename_exp = re.compile('^[%s]+(\[\d+\])\.md$' % settings.description_available_chars)
|
|
|
|
|
|
def check_description_filename(filename):
|
|
return __check_description_filename_exp.match(filename)
|