From: Daniel Stenberg Date: Mon, 16 May 2011 13:21:04 +0000 (+0200) Subject: checksrc: trailing whitespace detection fix X-Git-Tag: curl-7_21_7~112 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb7ff942d378538f37465873657ea5153914fab6;p=curl checksrc: trailing whitespace detection fix --- diff --git a/lib/checksrc.pl b/lib/checksrc.pl index 99bbc74d0..019406b37 100755 --- a/lib/checksrc.pl +++ b/lib/checksrc.pl @@ -118,7 +118,7 @@ sub scanfile { checkwarn($line, length($1), $file, $l, "Contains TAB character", 1); } # detect trailing white space - if($l =~ /^(\S+)[ \t]+\z/) { + if($l =~ /^(.*)[ \t]+\z/) { checkwarn($line, length($1), $file, $l, "Trailing whitespace"); }