Fixed issues according to review

This commit is contained in:
Philipp Czora
2018-08-07 14:30:40 +02:00
parent 7549a31065
commit d4ab19d730
6 changed files with 39 additions and 9 deletions

View File

@@ -8,3 +8,7 @@ const nameRegex = /^([A-z0-9.\-_@]|[^ ]([A-z0-9.\-_@ ]*[A-z0-9.\-_@]|[^\s])?)$/;
export const isNameValid = (name: string) => {
return nameRegex.test(name);
};
export const isMemberNameValid = (name: string) => {
return nameRegex.test(name);
}