Loosen DB hostname regex

Fixes #574
This commit is contained in:
Joseph Schorr 2015-10-01 12:35:19 -04:00
parent 5505707884
commit 125bf97667

View file

@ -16,7 +16,7 @@
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) {
if (hostname.indexOf('127.0.0.1') == 0 || hostname.indexOf('localhost') == 0) {