From 921624ad42b49104c76b6b54b3e7ac567e866912 Mon Sep 17 00:00:00 2001 From: Ignace Nyamagana Butera Date: Thu, 13 Mar 2014 10:54:30 +0100 Subject: [PATCH] bug fix detectDelimiter --- src/AbstractCsv.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AbstractCsv.php b/src/AbstractCsv.php index a63b3e5d..70600551 100644 --- a/src/AbstractCsv.php +++ b/src/AbstractCsv.php @@ -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),