mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2025-05-13 10:10:56 +02:00
Previously validateDomain() function was used for hostname validations but was weak in a chain of validations, for example, domain -> ipv4 as it accepts invalid IPv4 addresses. So we had to split it, improve the domain name RegEx pattern and add a hostname validation pattern.