mirror of https://github.com/fail2ban/fail2ban
allow usage of "-" character in the name of sections by extended interpolation (like `%(my-section/some-value)s`).
parent
e52f483557
commit
0782b28460
|
@ -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+)(\?.+)$")
|
||||
|
||||
|
|
Loading…
Reference in New Issue