1
0
Fork 0
mirror of https://github.com/activerecord-hackery/ransack.git synced 2022-11-09 13:47:45 -05:00

Revert escaping of underscore characater from #171

Related to #176
This commit is contained in:
Ryan Bigg 2012-12-18 15:52:44 +11:00
parent bc686269cd
commit 71a3938a1c

View file

@ -21,9 +21,9 @@ module Ransack
]
module_function
# replace % _ \ to \% \_ \\
# replace % \ to \% \\
def escape_wildcards(unescaped)
unescaped.gsub(/\\/){ "\\\\" }.gsub(/%/, "\\%").gsub(/_/, "\\_")
unescaped.gsub(/\\/){ "\\\\" }.gsub(/%/, "\\%")
end
end
end
end