From: Matthew Vernon Date: Tue, 15 Apr 2014 17:19:21 +0000 (+0100) Subject: correct regexp X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~webstump/git?a=commitdiff_plain;h=5cd7fbca93bd5010359b5090c732a1d17f0463ff;p=modbot-uram.git correct regexp we want ?$, so the .gz is an optional match. --- 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 ); };