From 5cd7fbca93bd5010359b5090c732a1d17f0463ff Mon Sep 17 00:00:00 2001 From: Matthew Vernon Date: Tue, 15 Apr 2014 18:19:21 +0100 Subject: [PATCH] correct regexp we want ?$, so the .gz is an optional match. --- 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 728bd71..a974628 100644 --- a/webstump/scripts/html_output.pl +++ b/webstump/scripts/html_output.pl @@ -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 ); }; -- 2.30.2