We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 467dc01 commit 68323b8Copy full SHA for 68323b8
backend/lib/projets-validator.js
@@ -22,7 +22,7 @@ export function validateJoiDate(date, helpers) {
22
return null
23
}
24
25
- if (!date || typeof date !== 'string' || !/^\d{4}-\d{2}-\d{2}$/.test(date)) {
+ if (typeof date !== 'string' || !/^\d{4}-\d{2}-\d{2}$/.test(date)) {
26
return helpers.message('Date invalide')
27
28
0 commit comments