Describe the bug
Value http://localhost:8080/ return as a invalid url.
To Reproduce
const yup = require('yup');
const schema = yup.string().url();
const value = 'http://localhost:8080/'
console.log(`Testing '${value}'`, schema.isValidSync(value))
Expected behavior
This should return true.
Platform:
Having same issue. I think it's because localhost is not handled in here https://github.com/jquense/yup/blob/master/src/string.js#L9.
Related: https://github.com/jquense/yup/issues/224
I'd also like localhost to be supported.
Most helpful comment
Related: https://github.com/jquense/yup/issues/224
I'd also like localhost to be supported.