From: Matthew Vernon Date: Tue, 15 Apr 2014 17:21:07 +0000 (+0100) Subject: Correct regexp X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~webstump/git?a=commitdiff_plain;ds=sidebyside;h=f1fc03fb46d03d0640bba47ccec21b3f46fcc481;p=modbot-uram.git Correct regexp We want to make the trailing .gz optional, so errs.0 gets matched --- 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 ); };