Skip to content

Commit

Permalink
bug fix detectDelimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Mar 13, 2014
1 parent df6c9b0 commit 921624a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AbstractCsv.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public function detectDelimiter($nbRows = 1, array $delimiters = [])
$delimiters = array_filter($delimiters, function ($str) {
return 1 == mb_strlen($str);
});
$delimiters = array_merge([',', ';', "\t"], $delimiters);
$delimiters = array_merge([$this->delimiter, ',', ';', "\t"], $delimiters);
$delimiters = array_unique($delimiters);
$iterator = new CallbackFilterIterator(
new LimitIterator($this->getIterator(), 0, $nbRows),
Expand Down

0 comments on commit 921624a

Please sign in to comment.