mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
use strpos instead of preg_match
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user