Skip to content
Snippets Groups Projects
Commit bb7ff942 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

checksrc: trailing whitespace detection fix

parent 48a40f04
No related branches found
No related tags found
No related merge requests found
......@@ -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");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment