mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
BF: group _f for %f in strptime for py2.5 compatibility
This commit is contained in:
parent
6fd2179725
commit
7b52a578bd
1 changed files with 1 additions and 1 deletions
|
|
@ -242,7 +242,7 @@ class DatePatternRegex(DateStrptime):
|
|||
_patternRegex = {
|
||||
'a': r"\w{3}", 'A': r"\w+", 'b': r"\w{3}", 'B': r"\w+",
|
||||
'd': r"(?:3[0-1]|[1-2]\d|[ 0]?\d)",
|
||||
'f': r"\d{1,6}", 'H': r"(?:2[0-3]|1\d|[ 0]?\d)",
|
||||
'f': r"(?P<_f>\d{1,6})", 'H': r"(?:2[0-3]|1\d|[ 0]?\d)",
|
||||
'I': r"(?:1[0-2]|[ 0]?\d)",
|
||||
'j': r"(?:36[0-6]3[0-5]\d|[1-2]\d\d|[ 0]?\d\d|[ 0]{0,2}\d)",
|
||||
'm': r"(?:1[0-2]|[ 0]?[1-9])", 'M': r"[0-5]\d", 'p': r"[AP]M",
|
||||
|
|
|
|||
Loading…
Reference in a new issue