method
escape_glob_chars
v4.1.8 -
Show 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