aboutsummaryrefslogtreecommitdiff
path: root/lib/checksrc.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-05-16 15:21:04 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-05-16 15:21:32 +0200
commitbb7ff942d378538f37465873657ea5153914fab6 (patch)
treebeee53f7d5ea59228023ab080ed93e91bc9fe552 /lib/checksrc.pl
parent48a40f04025ed4f8bc9818992862596af410e8a5 (diff)
checksrc: trailing whitespace detection fix
Diffstat (limited to 'lib/checksrc.pl')
-rwxr-xr-xlib/checksrc.pl2
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");
}