diff --git a/src/Goodby/CSV/Import/Standard/Lexer.php b/src/Goodby/CSV/Import/Standard/Lexer.php index 7631791..4cd6e0f 100644 --- a/src/Goodby/CSV/Import/Standard/Lexer.php +++ b/src/Goodby/CSV/Import/Standard/Lexer.php @@ -57,7 +57,7 @@ public function parse($filename, InterpreterInterface $interpreter) setlocale(LC_ALL, 'en_US.UTF-8'); foreach ( $csv as $lineNumber => $line ) { - if ($ignoreHeader && $lineNumber == 0 || (count($line) === 1 && empty($line[0]))) { + if ($ignoreHeader && $lineNumber == 0 || (count($line) === 1 && trim($line[0]) === '')) { continue; } $interpreter->interpret($line);