Cleanup and remove appostrophies in search string by default

This commit is contained in:
Tom Lingham
2014-07-18 19:57:13 +10:00
parent c9f28197c0
commit 8931bc2e56
10 changed files with 19 additions and 51 deletions

View File

@ -34,9 +34,6 @@ class ConsecutiveCharactersMatcher extends BaseMatcher
{
$searchString = $this->formatSearchString( $rawString );
$query = "IF($column {$this->operator} '$searchString', ROUND({$this->multiplier} * (CHAR_LENGTH( '$rawString' ) / CHAR_LENGTH( REPLACE($column, ' ', '') ))), 0)";
return $query;
return "IF($column {$this->operator} '$searchString', ROUND({$this->multiplier} * (CHAR_LENGTH( '$rawString' ) / CHAR_LENGTH( REPLACE($column, ' ', '') ))), 0)";
}
}