Commit 52df5052 authored by Elliot Pahl's avatar Elliot Pahl Committed by Richard Mansfield
Browse files

PEAR::File_CSV: Comment out broken regex.

parent 51abe8f9
......@@ -532,7 +532,8 @@ class File_CSV
foreach ($lines as $line) {
$orgLine = $line;
foreach ($seps as $sep) {
$line = preg_replace("|^[^$quotes$sep]*$sep*([$quotes][^$quotes]*[$quotes])|sm", '_', $orgLine);
// FIXME: This preg_replace is broken and causing fields to be miscounted
//$line = preg_replace("|^[^$quotes$sep]*$sep*([$quotes][^$quotes]*[$quotes])|s", '_', $orgLine);
// Find all seps that are within qoutes
///FIXME ... counts legitimit lines as bad ones
......@@ -625,4 +626,4 @@ class File_CSV
return true;
}
}
\ No newline at end of file
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment