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

net: support 0 in IPv4 address #52941

Closed
wants to merge 2 commits into from
Closed

Conversation

RedYetiDev
Copy link
Member

IPv4 addresses can contain leading 0s in any segment, so this PR updates the RegEx to account for those.

(01.1.1.1 -> 1.1.1.1, etc)

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/net

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. net Issues and PRs related to the net subsystem. labels May 11, 2024
@aduh95
Copy link
Contributor

aduh95 commented May 11, 2024

Did you run the test suite before sending the PR?

@RedYetiDev
Copy link
Member Author

Did you run the test suite before sending the PR?

Haha! I ran the IPv6 test suite by accident, I'll fix it now.

@RedYetiDev RedYetiDev marked this pull request as draft May 11, 2024 15:48
@RedYetiDev RedYetiDev marked this pull request as ready for review May 11, 2024 17:13
@meyfa
Copy link
Contributor

meyfa commented May 20, 2024

This feels like a semver-major change to me. Libraries and applications may require the current, stricter, checks.

@RedYetiDev
Copy link
Member Author

Maybe, I'm closing this now (as I didn't put the thought into it that it needed), but I ,might reconsider later.

@RedYetiDev RedYetiDev closed this May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-ci PRs that need a full CI run. net Issues and PRs related to the net subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants