chiark / gitweb /
Correct regexp
authorMatthew Vernon <matthewv@chiark.greenend.org.uk>
Tue, 15 Apr 2014 17:21:07 +0000 (18:21 +0100)
committerMatthew Vernon <matthewv@chiark.greenend.org.uk>
Tue, 15 Apr 2014 17:21:07 +0000 (18:21 +0100)
We want to make the trailing .gz optional, so errs.0 gets matched

webstump/scripts/html_output.pl

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