Update validateHostname to allow wildcards
This commit is contained in:
parent
1a5a7c3fb6
commit
8629e98d79
|
@ -110,7 +110,7 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
validateHostname: function(host) {
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue