Skip to content

Commit

Permalink
Allow larger unicode charset for validName
Browse files Browse the repository at this point in the history
  • Loading branch information
younglim authored Feb 21, 2024
1 parent 52ad347 commit 0e9a849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion constants/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ export const validEmail = email => {
// For new user flow.
export const validName = name => {
const maxLength = 50;
const regex = /^[A-Za-z-,\s]+$/;
const regex = /^[\p{L}\p{Nd}-\s%\x21-\x7E]+$/;

if (name.length > maxLength) {
return false; // Reject names exceeding maxlength
Expand Down

0 comments on commit 0e9a849

Please sign in to comment.