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

pull/1750/head
sebres 2017-08-08 21:13:49 +02:00
parent e52f483557
commit 0782b28460
1 changed files with 2 additions and 2 deletions

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+)(\?.+)$")