src/hathoora/grid/grid.php
public static function sqlWhereSmartLike($v)
    {   
        $match = null;
        
        $v = trim($v);
        if (preg_match('/\*/', $v))
            $match = ' LIKE "'. self::getDSN()->escape(str_replace('*', '%', $v)) . '" ';
        else 
            $match = ' = "'. self::getDSN()->escape($v) . '" ';
            
        return $match;
    }
public static function sqlWhereSmartLike($v)
    {   
        $match = null;
        
        $v = trim($v);
        if (preg_match('/\*/', $v))
            $match = ' LIKE "'. self::getDSN()->escape(str_replace('*', '%', $v)) . '" ';
        else 
            $match = ' = "'. self::getDSN()->escape($v) . '" ';
            
        return $match;
    }
Replaces \* with %
Would return ' LIKE "%when $v has wildcard" '
Else would return ' = "$v"