From f1fc03fb46d03d0640bba47ccec21b3f46fcc481 Mon Sep 17 00:00:00 2001 From: Matthew Vernon Date: Tue, 15 Apr 2014 18:21:07 +0100 Subject: [PATCH] Correct regexp We want to make the trailing .gz optional, so errs.0 gets matched --- webstump/scripts/html_output.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webstump/scripts/html_output.pl b/webstump/scripts/html_output.pl index 6ee3295..e460fe3 100644 --- a/webstump/scripts/html_output.pl +++ b/webstump/scripts/html_output.pl @@ -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 ); }; -- 2.30.2