X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/8378a7a9d6ffef1626ed8516150ce0807635a5fa..435d259b65ca110065a96581c1d568fb3ddd205d:/src/validators/validators.tsx

diff --git a/src/validators/validators.tsx b/src/validators/validators.tsx
index acef9744..13ce4e6a 100644
--- a/src/validators/validators.tsx
+++ b/src/validators/validators.tsx
@@ -6,13 +6,14 @@ import { require } from './require';
 import { maxLength } from './max-length';
 import { isRsaKey } from './is-rsa-key';
 import { isRemoteHost } from "./is-remote-host";
+import { validName } from "./valid-name";
 
 export const TAG_KEY_VALIDATION = [require, maxLength(255)];
 export const TAG_VALUE_VALIDATION = [require, maxLength(255)];
 
-export const PROJECT_NAME_VALIDATION = [require, maxLength(255)];
+export const PROJECT_NAME_VALIDATION = [require, validName, maxLength(255)];
 
-export const COLLECTION_NAME_VALIDATION = [require, maxLength(255)];
+export const COLLECTION_NAME_VALIDATION = [require, validName, maxLength(255)];
 export const COLLECTION_DESCRIPTION_VALIDATION = [maxLength(255)];
 export const COLLECTION_PROJECT_VALIDATION = [require];
 
