mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
New feature: Verbal condition operators don't have to be lower case
This commit is contained in:
@@ -1023,7 +1023,7 @@ class Csv {
|
||||
|
||||
if (preg_match('/^(.+) (' . $operators_regex . ') (.+)$/i', trim($condition), $capture)) {
|
||||
$field = $capture[1];
|
||||
$op = $capture[2];
|
||||
$op = strtolower($capture[2]);
|
||||
$value = $capture[3];
|
||||
|
||||
if (preg_match('/^([\'\"]{1})(.*)([\'\"]{1})$/', $value, $capture) && $capture[1] == $capture[3]) {
|
||||
|
||||
Reference in New Issue
Block a user