Merge pull request #579 from coreos-inc/dbfieldfix
Loosen DB hostname regex
This commit is contained in:
commit
23d85409a6
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.HOSTNAME_REGEX = '^[a-zA-Z-0-9\.]+(:[0-9]+)?$';
|
$scope.HOSTNAME_REGEX = '^[a-zA-Z-0-9_\.\-]+(:[0-9]+)?$';
|
||||||
|
|
||||||
$scope.validateHostname = function(hostname) {
|
$scope.validateHostname = function(hostname) {
|
||||||
if (hostname.indexOf('127.0.0.1') == 0 || hostname.indexOf('localhost') == 0) {
|
if (hostname.indexOf('127.0.0.1') == 0 || hostname.indexOf('localhost') == 0) {
|
||||||
|
|
Reference in a new issue