Commit bb7ff942 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

checksrc: trailing whitespace detection fix

parent 48a40f04
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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");
        }