method
escape_glob_chars
rails latest stable - Class:
ActionDispatch::FileHandler
escape_glob_chars(path)public
No documentation available.
# File actionpack/lib/action_dispatch/middleware/static.rb, line 44
def escape_glob_chars(path)
path.gsub(/[*?{}\[\]\\]/, "\\\\\\&")
end