-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
Support all the range of valid ipV4 #393
Conversation
According to a recent thread on Twitter, it seems that fast-check already support all the range of IPv6 addresses: https://twitter.com/ndubien/status/1161190040212516869?s=19 |
Maybe an update missing for |
IPv6 can still be treated by adding 0 or mixing upper case and lower case within the same IP address It will be treated as a FAR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next step: extend it to IPv6 by adding mixed case IPs
src/check/arbitrary/IpArbitrary.ts
Outdated
return `0${Number(v).toString(8)}`; | ||
case 'hex': | ||
return `0x${Number(v).toString(16)}`; | ||
case 'HEX': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed anymore: the uppercase can be handled by the feature #426
b8335df
to
e0b34d2
Compare
No description provided.