Skip to content

Commit

Permalink
fix(lba-2326): amélioration regex pour contrer limite conversion mong…
Browse files Browse the repository at this point in the history
…odb (#1722)

* fix: amélioration regex pour contrer limite conversion mongodb

* fix: snapshot

* fix: snapshot
  • Loading branch information
alanlr authored Dec 19, 2024
1 parent b2480d2 commit bf76171
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ exports[`generateOpenApiSchema > should generate proper schema 1`] = `
"applicant_file_name": {
"description": "Nom du fichier du CV du candidat. Seuls les .docx et .pdf sont autorisés.",
"minLength": 1,
"pattern": "((.*?))(\\.)+(docx|pdf)$",
"pattern": "((.*?))(\\.)+([Dd][Oo][Cc][Xx]|[Pp][Dd][Ff])$",
"type": "string",
},
"applicant_first_name": {
Expand Down
2 changes: 1 addition & 1 deletion shared/models/applications.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const ZApplication = z
applicant_attachment_name: z
.string()
.min(1)
.regex(/((.*?))(\.)+(docx|pdf)$/i)
.regex(/((.*?))(\.)+([Dd][Oo][Cc][Xx]|[Pp][Dd][Ff])$/i)
.describe("Nom du fichier du CV du candidat. Seuls les .docx et .pdf sont autorisés."),
applicant_message_to_company: z.string().nullable().describe("Un message du candidat vers le recruteur. Ce champ peut contenir la lettre de motivation du candidat."),
job_searched_by_user: z.string().nullish().describe("Métier recherché par le candidat"),
Expand Down

0 comments on commit bf76171

Please sign in to comment.