Skip to content

Commit

Permalink
Use better email regex (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yureien authored Nov 8, 2023
1 parent 257c7de commit 2260f0c
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 2260f0c

Please sign in to comment.