Only lines starting with a # should be treated as comments, fixes #3066
parent
02984abf23
commit
f53994fcf2
|
@ -82,17 +82,14 @@ abstract class BaseExcludeFilter
|
||||||
function ($line) use ($lineParser) {
|
function ($line) use ($lineParser) {
|
||||||
$line = trim($line);
|
$line = trim($line);
|
||||||
|
|
||||||
$commentHash = strpos($line, '#');
|
if (!$line || 0 === strpos($line, '#')) {
|
||||||
if ($commentHash !== false) {
|
return;
|
||||||
$line = substr($line, 0, $commentHash);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($line) {
|
return call_user_func($lineParser, $line);
|
||||||
return call_user_func($lineParser, $line);
|
},
|
||||||
}
|
$lines
|
||||||
|
),
|
||||||
return null;
|
|
||||||
}, $lines),
|
|
||||||
function ($pattern) {
|
function ($pattern) {
|
||||||
return $pattern !== null;
|
return $pattern !== null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue