whitequark / ipaddr.js

IP address manipulation library in JavaScript
MIT License
570 stars 92 forks source link

weird bug with .isValid #138

Closed EitanK96 closed 4 years ago

EitanK96 commented 4 years ago

Hey,

i am trying to use the .isValid() function of this module and i get some weird results for my inputs.

ipaddr.isValid('31') - returns true --> should be False basically as soon as a dot . is added it is parsing it correctly.

whitequark commented 4 years ago

Duplicate of #44.