diff --git a/src/SearchDrivers/BaseSearchDriver.php b/src/SearchDrivers/BaseSearchDriver.php index 68d99d6..f7f52e3 100755 --- a/src/SearchDrivers/BaseSearchDriver.php +++ b/src/SearchDrivers/BaseSearchDriver.php @@ -72,7 +72,7 @@ abstract class BaseSearchDriver implements SearchDriverInterface */ public function query($searchString) { - $this->searchString = substr(substr(\DB::connection()->getPdo()->quote($searchString), 1), 0, -1); + $this->searchString = substr(\DB::connection()->getPdo()->quote($searchString), 1, -1); return $this; }