Skip to content

Commit fc00e49

Browse files
committed
Merge branch 'main' into 0.7.0
2 parents c54a610 + 5f9b2c9 commit fc00e49

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

src/Filters/QueryMatchFilter.php

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,17 @@ public function filter($collection): array
5353
$comparisonValue = preg_replace('/[\'"]$/', '', $comparisonValue);
5454
$comparisonValue = preg_replace('/[\'"],[ ]*[\'"]/', ',', $comparisonValue);
5555
$comparisonValue = explode(",", $comparisonValue);
56-
} elseif (strtolower($comparisonValue) === 'false') {
57-
$comparisonValue = false;
58-
} elseif (strtolower($comparisonValue) === 'true') {
59-
$comparisonValue = true;
60-
} elseif (strtolower($comparisonValue) === 'null') {
61-
$comparisonValue = null;
56+
} else {
57+
$comparisonValue = preg_replace('/^[\'"]/', '', $comparisonValue);
58+
$comparisonValue = preg_replace('/[\'"]$/', '', $comparisonValue);
59+
60+
if (strtolower($comparisonValue) === 'false') {
61+
$comparisonValue = false;
62+
} elseif (strtolower($comparisonValue) === 'true') {
63+
$comparisonValue = true;
64+
} elseif (strtolower($comparisonValue) === 'null') {
65+
$comparisonValue = null;
66+
}
6267
}
6368
}
6469

0 commit comments

Comments
 (0)