chiark / gitweb /
correct regexp
authorMatthew Vernon <matthewv@chiark.greenend.org.uk>
Tue, 15 Apr 2014 17:19:21 +0000 (18:19 +0100)
committerMatthew Vernon <matthewv@chiark.greenend.org.uk>
Tue, 15 Apr 2014 17:19:21 +0000 (18:19 +0100)
we want ?$, so the .gz is an optional match.

webstump/scripts/html_output.pl

index 728bd711d42fd3c153b1598b09598af096318da5..a974628f9d94ebe48b51e3d0bf66bdabf3217815 100644 (file)
@@ -636,7 +636,7 @@ sub scanlogs ($$$) {
         local ($_) = @_;
         return $forwards * (
             m/^errs$/ ? 1 :
-            m/^errs\.(\d+)(?:\.gz$)$/ ? ($1+2) :
+            m/^errs\.(\d+)(?:\.gz)?$/ ? ($1+2) :
             0
                            );
     };