Sync util big update

This commit is contained in:
tmshv committed 2016-02-27 16:19:08 +03:00
1 parent 1e80bae401
commit 40321327d6
30 files changed
+1001 -159

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
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)
def suggest_description_filename(filename):
bn = os.path.basename(filename)
bn = os.path.splitext(bn)[0]
v = settings.default_description_version
return '%s [%s].md' % (bn, v)