parent
bc686269cd
commit
71a3938a1c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue