mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 08:55:44 +01:00
Fixed issues according to review
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user