Skip to content

Commit

Permalink
crazy name pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
jeyem committed Dec 19, 2023
1 parent 36cc0d4 commit 62036ab
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,6 +1,6 @@
{
"name": "@socious/data",
"version": "1.0.68",
"version": "1.0.69",
"description": "Data definitions for Socious API",
"type": "module",
"main": "./src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export const usernamePattern =
/^(?=.{6,24}$)(?![_.])(?!.*[_.]{2})[a-z0-9._-]+$/;

export const languagePattern = /^[a-z][a-z](-[a-z][a-z])?$/;
export const namesPattern = /(\p{L}+)(\s\p{L}+)*/;
export const namesPattern = /\p{L}+(\s\p{L}+)*(\.\p{L}+)*$/;

export const UpdateProfileSchema = Joi.object({
first_name: Joi.string().regex(namesPattern).required(),
Expand Down

0 comments on commit 62036ab

Please sign in to comment.