Fix rename of namespace with UTF-8 (#1611)

This commit is contained in:
René Pfeuffer
2021-04-06 09:19:31 +02:00
committed by GitHub
parent 5f887d4fa8
commit 0a6e6e6c85
2 changed files with 4 additions and 1 deletions

View File

@@ -0,0 +1,3 @@
- type: fixed
description: Validation for namespaces on rename with UTF-8 characters ([#1611](https://github.com/scm-manager/scm-manager/pull/1611))

View File

@@ -72,7 +72,7 @@ const RenameRepository: FC<Props> = ({ repository, indexLinks }) => {
(repository.name !== name || repository.namespace !== namespace);
const handleNamespaceChange = (namespace: string) => {
setNamespaceValidationError(!validator.isNameValid(namespace));
setNamespaceValidationError(!validator.isNamespaceValid(namespace));
setNamespace(namespace);
};