From 0053a68c84cf2f835b97200a1b1e81a07a2cd327 Mon Sep 17 00:00:00 2001 From: joe Date: Sun, 13 May 2001 17:45:58 +0000 Subject: Remove trailing spaces in the log message correctly. PR: Submitted by: Reviewed by: Approved by: Obtained from: --- CVSROOT/logcheck | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CVSROOT') diff --git a/CVSROOT/logcheck b/CVSROOT/logcheck index e5cbe71..eaac0cb 100755 --- a/CVSROOT/logcheck +++ b/CVSROOT/logcheck @@ -27,7 +27,7 @@ open(OUT, "> $tmpfile") || # Read the log file in, stripping 'CVS:' lines and removing trailing # white spaces. -my @log_in = map { s/^(.*)\s*$/$1/; $1 } grep { !/^CVS:/ } ; +my @log_in = map { s/^(.*?)\s*$/$1/; $_ } grep { !/^CVS:/ } ; # Remove leading, trailing and duplicate blank lines. my $i = 0; -- cgit v1.1