We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7557c12 + b93854c commit be40da9Copy full SHA for be40da9
lib/ransack/adapters/active_record/ransack/constants.rb
@@ -104,7 +104,7 @@ def escape_wildcards(unescaped)
104
case ActiveRecord::Base.connection.adapter_name
105
when "Mysql2".freeze, "PostgreSQL".freeze
106
# Necessary for PostgreSQL and MySQL
107
- unescaped.to_s.gsub(/([\\|\%|_|.])/, '\\\\\\1')
+ unescaped.to_s.gsub(/([\\%_.])/, '\\\\\\1')
108
else
109
unescaped
110
end
0 commit comments