1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-08 07:15:23 +02:00

fix(image): allow dot in image names [EE-4595] (#8619)

This commit is contained in:
Dakota Walsh 2023-04-27 09:44:08 +12:00 committed by GitHub
parent 7ed8e9e167
commit b5771df6a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ function BuildImageController($scope, $async, $window, BuildService, Notificatio
// Validation
const parts = item.Name.split('/');
const repository = parts[parts.length - 1];
const repositoryRegExp = RegExp('^[a-z0-9-_]{2,255}(:[A-Za-z0-9-_.]{1,128})?$');
const repositoryRegExp = RegExp('^[a-z0-9-_.]{2,255}(:[A-Za-z0-9-_.]{1,128})?$');
item.Valid = repositoryRegExp.test(repository);
};