Skip to content

Comments

Valid IP in request support#13

Open
okdas wants to merge 1 commit intojosephwegner:masterfrom
okdas:master
Open

Valid IP in request support#13
okdas wants to merge 1 commit intojosephwegner:masterfrom
okdas:master

Conversation

@okdas
Copy link

@okdas okdas commented Nov 6, 2013

Maybe I did something wrong, but I needed to change that.

@josephwegner
Copy link
Owner

Hi @okdas -

It looks like the code you added is to check for a IP address route part. Looking at the code, it would appear that you're checking if it's a valid IP address by running it against a regexp.

Simple API actually already has a route part type for RegExp matching. Check out the syntax in the README.

Let me know if you have any other issues.

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.

2 participants