We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd1cbe1 commit a1b176aCopy full SHA for a1b176a
src/validation/programSchema.ts
@@ -3,19 +3,19 @@ import joi from "joi";
3
const programSchema = joi.object({
4
title: joi
5
.string()
6
- .pattern(/^[a-zA-Z0-9\s]+$/)
+ .pattern(/^[\p{L}\p{N}\p{P}\p{Z}]+$/u)
7
.required(),
8
- description: joi
+ description: joi
9
10
11
12
mainObjective: joi
13
14
15
16
modeOfExecution: joi
17
18
19
20
duration: joi
21
0 commit comments