Skip to content

Commit

Permalink
Use better email regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Yureien authored Nov 8, 2023
1 parent 257c7de commit 33c954f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/server/validate.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const emailRegex = /^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/g;
const emailRegex = /^([\w%+-]+\.)*[\w%+-]+@([A-Z0-9-]+\.)+[A-Z0-9-]{2,}$/i;
const passwordLength = 8;
const nameLength = 50;
const usernameLength = 50;
Expand Down

0 comments on commit 33c954f

Please sign in to comment.