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

Correct valid IPv4-address string #662

Merged
merged 1 commit into from
Oct 21, 2021
Merged

Correct valid IPv4-address string #662

merged 1 commit into from
Oct 21, 2021

Conversation

annevk
Copy link
Member

@annevk annevk commented Oct 20, 2021

Fixes #583.

cc @alwinb


Preview | Diff

@annevk
Copy link
Member Author

annevk commented Oct 20, 2021

A more ambitious take might be trying to share some infrastructure with HTML's valid non-negative integer...

@alwinb
Copy link
Contributor

alwinb commented Oct 20, 2021

Though from a quick look at the HTML standard that would not prevent the issue with e.g. 01 being considered valid.

This should do. I think this closes the issue.

Thanks, also, since I suggested that I would get back to it and then didn’t.

@annevk
Copy link
Member Author

annevk commented Oct 21, 2021

Right, we would still need to constrain it with "shortest possible", but that's also used within HTML to constrain things. Perhaps there is some future point where Infra defines more of this and we could refactor this.

@annevk annevk merged commit 4c18d6c into main Oct 21, 2021
@annevk annevk deleted the annevk/valid-ipv4 branch October 21, 2021 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Valid IPv4 address string
2 participants