Skip to content
Browse files

removed the unnecessary back slashes from the regular expression

  • Loading branch information...
1 parent 2e07c71 commit 46ecb53fc222c037a905b341c940f2626209ff76 @rdoddaka rdoddaka committed Jun 10, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_dispatch/routing/mapper.rb
View
4 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -50,8 +50,8 @@ def constraint_args(constraint, request)
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

0 comments on commit 46ecb53

Please sign in to comment.
Something went wrong with that request. Please try again.