Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(lba-2326): amélioration regex pour contrer limite conversion mongodb #1722

Merged
merged 5 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading