From 5340ab9584de57828df79ebaf5c9b4cecfd656b5 Mon Sep 17 00:00:00 2001 From: Fonata Date: Sun, 3 Nov 2019 23:08:08 +0100 Subject: [PATCH] New feature: Verbal condition operators don't have to be lower case --- src/Csv.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Csv.php b/src/Csv.php index 0980a93..f5f175b 100644 --- a/src/Csv.php +++ b/src/Csv.php @@ -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]) {