Merge pull request #579 from coreos-inc/dbfieldfix

Loosen DB hostname regex
This commit is contained in:
josephschorr 2015-10-01 14:49:27 -04:00
commit 23d85409a6

View file

@ -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) {