checksrc: trailing whitespace detection fix
This commit is contained in:
parent
48a40f0402
commit
bb7ff942d3
@ -118,7 +118,7 @@ sub scanfile {
|
|||||||
checkwarn($line, length($1), $file, $l, "Contains TAB character", 1);
|
checkwarn($line, length($1), $file, $l, "Contains TAB character", 1);
|
||||||
}
|
}
|
||||||
# detect trailing white space
|
# detect trailing white space
|
||||||
if($l =~ /^(\S+)[ \t]+\z/) {
|
if($l =~ /^(.*)[ \t]+\z/) {
|
||||||
checkwarn($line, length($1), $file, $l, "Trailing whitespace");
|
checkwarn($line, length($1), $file, $l, "Trailing whitespace");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user