mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
removed the unnecessary back slashes from the regular expression
This commit is contained in:
@@ -50,8 +50,8 @@ module ActionDispatch
|
||||
class Mapping #:nodoc:
|
||||
IGNORE_OPTIONS = [:to, :as, :via, :on, :constraints, :defaults, :only, :except, :anchor, :shallow, :shallow_path, :shallow_prefix]
|
||||
ANCHOR_CHARACTERS_REGEX = %r{\A(\\A|\^)|(\\Z|\\z|\$)\Z}
|
||||
SHORTHAND_REGEX = %r{^/[\w\/]+$}
|
||||
WILDCARD_PATH = %r{\*([^\/]+)$}
|
||||
SHORTHAND_REGEX = %r{^/[\w/]+$}
|
||||
WILDCARD_PATH = %r{\*([^/]+)$}
|
||||
|
||||
def initialize(set, scope, path, options)
|
||||
@set, @scope = set, scope
|
||||
|
||||
Reference in New Issue
Block a user