From 611b1a92e85ddf27cc3186bd1763755996fdf892 Mon Sep 17 00:00:00 2001 From: Susann Sgorzaly Date: Mon, 26 Feb 2018 08:46:41 +0100 Subject: [PATCH] use strpos instead of preg_match --- src/Csv.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Csv.php b/src/Csv.php index 49ba372..b4b2e1d 100644 --- a/src/Csv.php +++ b/src/Csv.php @@ -558,7 +558,7 @@ class Csv { preg_match_all($pattern, $this->file_data, $matches); foreach ($matches[0] as $match) { - if (empty($match) || !preg_match("/{$this->enclosure}/", $match)) { + if (empty($match) || (strpos($match, $this->enclosure) === false)) { continue; }