Skip to content
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

Added url validations #30

Merged
merged 4 commits into from
Oct 1, 2017
Merged

Added url validations #30

merged 4 commits into from
Oct 1, 2017

Conversation

delvedor
Copy link
Owner

As titled.

An url should start with / or * and could not be empty.

@delvedor delvedor requested a review from mcollina September 29, 2017 15:12
@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 98.475% when pulling e0b05c9 on url-validation into 7f9954e on master.

1 similar comment
@coveralls
Copy link

coveralls commented Sep 29, 2017

Coverage Status

Coverage increased (+0.01%) to 98.475% when pulling e0b05c9 on url-validation into 7f9954e on master.

@coveralls
Copy link

coveralls commented Sep 29, 2017

Coverage Status

Coverage increased (+1.1%) to 99.561% when pulling e765c5b on url-validation into 7f9954e on master.

@@ -300,9 +304,6 @@ Router.prototype.find = function (method, path) {
path = path.slice(i)
continue
}

// route not found
if (len !== prefixLen) return null
Copy link
Collaborator

Choose a reason for hiding this comment

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

are we sure about this change?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Yes, that code was forgotten there, its position is here :D

Copy link
Collaborator

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

LGTM

@delvedor delvedor merged commit 5288ecc into master Oct 1, 2017
@delvedor delvedor deleted the url-validation branch October 1, 2017 08:41
@AVVS AVVS mentioned this pull request Oct 1, 2017
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