Skip to content

Commit

Permalink
fix: amélioration regex pour contrer limite conversion mongodb
Browse files Browse the repository at this point in the history
  • Loading branch information
alanlr committed Dec 18, 2024
1 parent 82531bb commit 7986ea8
Showing 1 changed file with 1 addition and 1 deletion.
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 7986ea8

Please sign in to comment.