mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
allow usage of "-" character in the name of sections by extended interpolation (like %(my-section/some-value)s).
This commit is contained in:
parent
e52f483557
commit
0782b28460
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue