[Groonga-commit] groonga/groonga-log at 6c61172 [master] Accept extension after timestamp in path

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Jan 25 12:34:44 JST 2018


Kouhei Sutou	2018-01-25 12:34:44 +0900 (Thu, 25 Jan 2018)

  New Revision: 6c611728b6fb295f77f7e17e632dffec45d1587c
  https://github.com/groonga/groonga-log/commit/6c611728b6fb295f77f7e17e632dffec45d1587c

  Message:
    Accept extension after timestamp in path

  Modified files:
    lib/groonga-log/parser.rb

  Modified: lib/groonga-log/parser.rb (+2 -1)
===================================================================
--- lib/groonga-log/parser.rb    2018-01-15 15:31:58 +0900 (dba7cdf)
+++ lib/groonga-log/parser.rb    2018-01-25 12:34:44 +0900 (78e1ee1)
@@ -28,7 +28,8 @@ module GroongaLog
           \|(?:(?<pid>\d+):)?
           \ (?<message>[^\r\n]*)/x
     PATH_TIMESTAMP_PATTERN = /(\d{4})-(\d{2})-(\d{2})-
-                              (\d{2})-(\d{2})-(\d{2})-(\d{6})\z/x
+                              (\d{2})-(\d{2})-(\d{2})-(\d{6})
+                              (?:\.(?:gz|zip))?\z/xi
 
     class << self
       def target_line?(line)
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180125/f752ad55/attachment.htm 



More information about the Groonga-commit mailing list
Back to archive index