sindresorhus / ow

Function argument validation for humans
https://sindresorhus.com/ow/
MIT License
3.81k stars 108 forks source link

ow.string.numeric doesn't support negative values #111

Closed SamVerschueren closed 5 years ago

SamVerschueren commented 5 years ago

I wanted to check with ow if I could use parseInt() on a string value. So I did ow(value, ow.string.numeric). It failed with the input of -1 which is a perfect valid numeric value. Is this something we should support?

sindresorhus commented 5 years ago

Yes, should be supported. Just an oversight.