Permalink
Browse files

Fix compat

  • Loading branch information...
1602 committed Mar 27, 2013
1 parent 28bf265 commit 8311bdb35f01989d7f63ba8df27996daa445c21f
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/railway_routes.js
View
@@ -490,7 +490,8 @@ Map.prototype.namespace = function (name, options, subroutes) {
// store previous ns
var old_ns = this.ns, oldGlobPath = this.globPath;
// add new ns to old (ensure tail slash present)
- // this.ns = old_ns + name.replace(/\/$/, '') + '/';
+ this.ns = old_ns + name.replace(/\/$/, '') + '/';
+ if (this.ns.match(/:/)) this.ns = '';
this.globPath = oldGlobPath + name.replace(/\/$/, '') + '/';
if (options && options.middleware) {
this.middlewareStack = this.middlewareStack.concat(options.middleware);

0 comments on commit 8311bdb

Please sign in to comment.