From: <los...@us...> - 2007-02-11 23:19:31
|
Revision: 546 http://svn.sourceforge.net/fail2ban/?rev=546&view=rev Author: lostcontrol Date: 2007-02-11 15:19:32 -0800 (Sun, 11 Feb 2007) Log Message: ----------- - Fixed asctime pattern in datedetector.py Modified Paths: -------------- trunk/server/datedetector.py Modified: trunk/server/datedetector.py =================================================================== --- trunk/server/datedetector.py 2007-02-11 23:18:58 UTC (rev 545) +++ trunk/server/datedetector.py 2007-02-11 23:19:32 UTC (rev 546) @@ -51,7 +51,7 @@ # asctime template = DateStrptime() template.setName("Weekday Month Day Hour:Minute:Second Year") - template.setRegex("\S{3} \S{3} \d{2} \d{2}:\d{2}:\d{2} \d{4}") + template.setRegex("\S{3} \S{3}\s{1,2}\d{1,2} \d{2}:\d{2}:\d{2} \d{4}") template.setPattern("%a %b %d %H:%M:%S %Y") self.__templates.append(template) # simple date This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |