lib/pg_search/features/tsearch.rb in pg_search-0.3.3 vs lib/pg_search/features/tsearch.rb in pg_search-0.3.4
- old
+ new
@@ -35,10 +35,10 @@
def document
@columns.map { |column| column.to_sql }.join(" || ' ' || ")
end
- DISALLOWED_TSQUERY_CHARACTERS = /['?\-\\:]/
+ DISALLOWED_TSQUERY_CHARACTERS = /['?\\:]/
def tsquery_for_term(term)
sanitized_term = term.gsub(DISALLOWED_TSQUERY_CHARACTERS, " ")
term_sql = @normalizer.add_normalization(connection.quote(sanitized_term))