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: http://git.ipfire.org/?a=commitdiff_plain;h=bb7ff942d378538f37465873657ea5153914fab6;p=thirdparty%2Fcurl.git checksrc: trailing whitespace detection fix --- diff --git a/lib/checksrc.pl b/lib/checksrc.pl index 99bbc74d00..019406b37c 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"); }