validate
validate copied to clipboard
`data:` URL validation is too narrow.
A non-exhaustive list of URIs that fail validation can be seen here: https://play.golang.org/p/pKsNZZ00AKo
Of particular note, most of the example data: URIs given in RFC-2397 do not validate, despite being specific explicitly valid data URIs.
Good catch! Looks like it is a similar issue to https://github.com/go-playground/validator/pull/548. Needs work.
Yeah, there was a poor regex that managed to spread pretty wide to nearly all of the validator packages. This is basically the canary test that I tend to do on every validate library that I find being used in our company. :laughing: