1
0
mirror of https://github.com/moparisthebest/curl synced 2025-03-11 07:39:50 -04:00

checksrc: trailing whitespace detection fix

This commit is contained in:
Daniel Stenberg 2011-05-16 15:21:04 +02:00
parent 48a40f0402
commit bb7ff942d3

View File

@ -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");
}