Skip to content

ignore non-string routes #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

xjamundx
Copy link

@xjamundx xjamundx commented Jan 6, 2014

just ignore routes that aren't string. fixes #5, #21

@@ -53,7 +53,7 @@ methods.forEach(function(method){
, self = this;

this.namespace(path, function(){
path = this._ns.join('/').replace(/\/\//g, '/').replace(/\/$/, '') || '/';
path = 'string' != typeof path ? path : this._ns.join('/').replace(/\/\//g, '/').replace(/\/$/, '') || '/';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation / tests ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bah, is it spaces or tabs? of course the indentation looks fine in my IDE :)

@xjamundx
Copy link
Author

xjamundx commented Jan 6, 2014

For my purposes I actually can just use my own fork pretty easily, but if you do want these changes, I can rebase the commits or change anything...

@vendethiel
Copy link

At that point I think you should ask @visionmedia for maintainer :).

@jonathanong
Copy link
Member

@visionmedia you can also just move all the express repos to the expressjs org and i can add maintainers and team members

bulkan added a commit to bulkan/express-namespace that referenced this pull request May 21, 2014
@bulkan bulkan mentioned this pull request May 21, 2014
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants