allow usage of "-" character in the name of sections by extended interpolation (like %(my-section/some-value)s).

This commit is contained in:
sebres 2017-08-08 21:13:49 +02:00
parent e52f483557
commit 0782b28460

View file

@ -117,8 +117,8 @@ after = 1.conf
SECTION_NAME = "INCLUDES"
SECTION_OPT_CRE = re.compile(r'^(\w+)/(.+)$')
SECTION_OPTSUBST_CRE = re.compile(r'%\((\w+/([^\)]+))\)s')
SECTION_OPT_CRE = re.compile(r'^([\w\-]+)/(.+)$')
SECTION_OPTSUBST_CRE = re.compile(r'%\(([\w\-]+/([^\)]+))\)s')
CONDITIONAL_RE = re.compile(r"^(\w+)(\?.+)$")