mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 00:36:38 +00:00
Simplified RegEx: {1} is the default and can be dropped
This commit is contained in:
@@ -1036,7 +1036,7 @@ class Csv {
|
||||
$op = $capture[2];
|
||||
$value = $capture[3];
|
||||
|
||||
if (preg_match('/^([\'\"]{1})(.*)([\'\"]{1})$/', $value, $capture) && $capture[1] == $capture[3]) {
|
||||
if (preg_match('/^([\'"])(.*)([\'"])$/', $value, $capture) && $capture[1] == $capture[3]) {
|
||||
$value = strtr($capture[2], array(
|
||||
"\\n" => "\n",
|
||||
"\\r" => "\r",
|
||||
|
||||
Reference in New Issue
Block a user