fix - allow alphanumeric FQDN

This commit is contained in:
Michal Tesar
2021-03-04 12:34:15 +00:00
committed by GitHub
parent 04c8d05266
commit 809e1ae30f
+1 -1
View File
@@ -303,7 +303,7 @@ const SipTrunkForm = props => {
}
const regIp = /^((25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])$/;
const regFqdn = /^([a-zA-Z][^.]*)(\.[^.]+){2,}$/;
const regFqdn = /^([a-zA-Z0-9][^.]*)(\.[^.]+){2,}$/;
const regFqdnTopLevel = /^([a-zA-Z][^.]*)(\.[^.]+)$/;
const regPort = /^[0-9]+$/;