Add support for IP version 4 or 6 for isIPRange function#1594
Add support for IP version 4 or 6 for isIPRange function#1594profnandaa merged 1 commit intovalidatorjs:masterfrom hoverkraft-tech:feat/is-ip-range-version-4-6
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1594 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 100 100
Lines 1807 1820 +13
=========================================
+ Hits 1807 1820 +13
Continue to review full report at Codecov.
|
|
Nice one ! Need this too |
|
Would this be a duplicate of #1568? Yours looks like it's a more complete solution though. |
tux-tn
left a comment
There was a problem hiding this comment.
Sorry for the late review. Thank you @neilime for your contribution! I really like your approach and the fact that you used the same logic behind isIP.
Can you please remove validator.js and validator.min.js (We stopped tracking those files in the library) and discard the unrelated changes in src/lib/isMobilePhone ?
Thank you 🎉
|
@tux-tn I have rebased with master, let me know if everything looks good to you |
|
@neilime LGTM ! thank you for making the necessary changes 🎉 |
profnandaa
left a comment
There was a problem hiding this comment.
Thanks for your contrib! 🎉
At the moment,
isIPRangefunction only supports IP v4, this PR allows to choose v4 or v6 or both (likeisIPfunction)Checklist