]> granicus.if.org Git - curl/commitdiff
checksrc: trailing whitespace detection fix
authorDaniel Stenberg <daniel@haxx.se>
Mon, 16 May 2011 13:21:04 +0000 (15:21 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 16 May 2011 13:21:32 +0000 (15:21 +0200)
lib/checksrc.pl

index 99bbc74d00c7172c7add5e8799b8426454a1b68f..019406b37c50ed90003a18ad7f00f0b49a3bc833 100755 (executable)
@@ -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");
         }