Skip to content

Commit 4f54294

Browse files
Fix: CONTAINS condition fails to match a value containing a backslash
1 parent 95c2f5f commit 4f54294

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/PdbHelpers.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ public static function likeEscape(string $str, string $escape = '\\'): string
169169
return strtr($str, [
170170
'%' => $escape . '%',
171171
'_' => $escape . '_',
172+
'\\' => $escape . '\\',
172173
]);
173174
}
174175

0 commit comments

Comments
 (0)