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.
1 parent 8b36204 commit b93854cCopy full SHA for b93854c
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