Merge pull request #9 from jambonz/tesarm-allow-alphanumeric-fqdn

fix - allow alphanumeric FQDN
This commit is contained in:
Dave Horton
2021-03-04 07:49:02 -05:00
committed by GitHub
+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]+$/;