3 ms·
I'd argue that it should fail, for any hostname/address validation other than an academic exercise. It's valid, but the only people who ever use dword IP addre
by quesera 11y ago
I'd argue that it should fail, for any hostname/address validation other than an academic exercise.
It's valid, but the only people who ever use dword IP addresses are pentesters and their less scrupulous analogues. I have no issue disapppointing them.
There are valid dotless (and dotted) octal and hex representations too. They should also fail, I think.
- nightcracker 11y agoIt's valid, therefore it should be marked as such by the regex.
- function_seven 11y agoNot so. From TFA: I also don’t want to allow every possible technically valid URL — quite the opposite. And dword and octal IP URLs are definitely in the realm of technically valid but practically not.