diff options
author | Raghunadh <rdoddaka@crri.co.in> | 2011-06-10 13:37:49 +0530 |
---|---|---|
committer | Raghunadh <rdoddaka@crri.co.in> | 2011-06-10 13:39:24 +0530 |
commit | 46ecb53fc222c037a905b341c940f2626209ff76 (patch) | |
tree | 4014eae2cecce0c66d3e78bf1cfba61789d610bc | |
parent | 2e07c711069e5c846f3381b6ae9af5d99d37286b (diff) | |
download | rails-46ecb53fc222c037a905b341c940f2626209ff76.tar.gz rails-46ecb53fc222c037a905b341c940f2626209ff76.tar.bz2 rails-46ecb53fc222c037a905b341c940f2626209ff76.zip |
removed the unnecessary back slashes from the regular expression
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index cf909a8811..187a98342e 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -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 |