diff --git a/static/js/directives/ui/credentials-dialog.js b/static/js/directives/ui/credentials-dialog.js index c20eadf1f..e838e2999 100644 --- a/static/js/directives/ui/credentials-dialog.js +++ b/static/js/directives/ui/credentials-dialog.js @@ -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) {