removed the unnecessary back slashes from the regular expression

This commit is contained in:
Raghunadh
2011-06-10 13:37:49 +05:30
parent 2e07c71106
commit 46ecb53fc2

View File

@@ -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