Skip to content

Commit 05bdd81

Browse files
committed
replcae string operation with exact match of (not like)
1 parent 30510ec commit 05bdd81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Jenssegers/Mongodb/Query/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ protected function compileWhereBasic(array $where)
980980

981981
// Replace like or not like with a Regex instance.
982982
if (in_array($operator, ['like', 'not like'])) {
983-
if (Str::startsWith($operator, 'not')) {
983+
if ($operator === 'not like') {
984984
$operator = 'not';
985985
} else {
986986
$operator = '=';

0 commit comments

Comments
 (0)