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

Checking for ip_regex.exec(candidate) to return null. #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TWithers
Copy link

I get several errors when running the getIPs function because the ip_regex.exec(candidate) returns null. Adding this check will ensure that the ip_addr only gets populated with valid ips and eliminates errors.

@TWithers
Copy link
Author

On second glance, this appears to only affect Chrome 46. Firefox has no issues. Don't know if it affects Chrome below 46.

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.

None yet

1 participant