Skip to content
Snippets Groups Projects
Commit 38e328f8 authored by Inès Yeterian's avatar Inès Yeterian
Browse files

try to fix joi problem

parent fa52f22d
No related branches found
No related tags found
1 merge request!4Url/year/title
......@@ -22,10 +22,9 @@ var validGet = Joi.object({
after: Joi.date().timestamp()
});
var validURL = Joi.object({
title: Joi.string()
var validURL = Joi.string()
.regex(/^[a-z0-9áàâäãåçéèêëíìîïñóòôöõúùûüýÿæœ._'-]{1,60}\d{4}$/) //
.required(),
});
.required()
;
module.exports = { newToucan, validTitle, validId, validURL, validGet };
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment