Add alpha numeric regex to username on sign up

resolves #82
This commit is contained in:
Kurt Hutten
2020-11-10 20:49:19 +11:00
parent 14716d1fb0
commit 01f1a02837
4 changed files with 8 additions and 5 deletions

View File

@@ -11,3 +11,5 @@ export const foreignKeyReplacement = (input) => {
})
return output
}
export const enforceAlphaNumeric = (string) => string.replace(/([^a-zA-Z\d_:])/g, '-')