diff options
-rwxr-xr-x | lib/checksrc.pl | 2 |
1 files changed, 1 insertions, 1 deletions
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"); } |