Closed SamVerschueren closed 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?
ow
parseInt()
ow(value, ow.string.numeric)
-1
Yes, should be supported. Just an oversight.
I wanted to check with
ow
if I could useparseInt()
on a string value. So I didow(value, ow.string.numeric)
. It failed with the input of-1
which is a perfect valid numeric value. Is this something we should support?