Skip to content

Commit

Permalink
fix: corrected display name regex;
Browse files Browse the repository at this point in the history
  • Loading branch information
ncoonrod committed Mar 17, 2024
1 parent 06f230b commit ab29f15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hotstaq/userroute",
"description": "A user route for HotStaq. Allows users to be created/edited/deleted securely.",
"version": "0.5.2",
"version": "0.5.3",
"main": "build/src/index.js",
"scripts": {
"test": "hotstaq --dev --env-file .env run --server-type api --api-test",
Expand Down
2 changes: 1 addition & 1 deletion src/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export class User implements IUser
* The regex to use to check for a valid display name. If displayNameValidateRegEx is
* set to null, this will not be used.
*/
static displayNameValidateRegEx: RegExp = /\S+@\S+\.\S+/;
static displayNameValidateRegEx: RegExp = /^[A-Za-z0-9_]+$/;
/**
* The event to fire when a user is registered into the database.
* This must return a user, WITH A USER ID SET.
Expand Down

0 comments on commit ab29f15

Please sign in to comment.