Merge pull request #1565 from coreos-inc/k8s-robot

Globally replace illegal chars in escaped username
This commit is contained in:
josephschorr 2016-06-21 14:02:38 -04:00 committed by GitHub
commit 875fbdddc1

View file

@ -194,7 +194,7 @@ angular.module('quay').directive('credentialsDialog', function () {
};
$scope.getEscapedUsername = function(credentials) {
return credentials.username.replace(/[^a-zA-Z0-9]/, '-');
return credentials.username.replace(/[^a-zA-Z0-9]/g, '-');
};
$scope.getSuffixedFilename = function(credentials, suffix) {