Update validateHostname to allow wildcards

This commit is contained in:
Tyler 2018-08-20 23:32:57 -04:00
parent 1a5a7c3fb6
commit 8629e98d79
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@
});
},
validateHostname: function(host) {
if (/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$/.test(host)) {
if (/^(([a-zA-Z0-9\*]|[a-zA-Z0-9\*][a-zA-Z0-9\*-]*[a-zA-Z0-9\*])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$/.test(host)) {
return true;
}