From 29cc3f9199dc14644bfaece8ed29c5202a988c9c Mon Sep 17 00:00:00 2001 From: anatole <anatole.romon@polytechnique.edu> Date: Thu, 1 Mar 2018 17:46:53 +0100 Subject: [PATCH] modifs negligeables --- src/graphql/schema.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/graphql/schema.js b/src/graphql/schema.js index 7fc2e60..887570e 100644 --- a/src/graphql/schema.js +++ b/src/graphql/schema.js @@ -101,7 +101,9 @@ const getUsersWithAdminRights = (uid) => { */ const getAvailableGroupUID = (initialUID) => { let rasUID = initialUID; -} + rasUID.replace(' ', '_'); + rasUID.replace(/\W/g, ''); +}; const createGroupIfLegal = (user, args) => { if(typeof args.parentuid != String) -- GitLab