Skip to content

Commit a1b176a

Browse files
committed
fixed validation on program description
1 parent dd1cbe1 commit a1b176a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/validation/programSchema.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ import joi from "joi";
33
const programSchema = joi.object({
44
title: joi
55
.string()
6-
.pattern(/^[a-zA-Z0-9\s]+$/)
6+
.pattern(/^[\p{L}\p{N}\p{P}\p{Z}]+$/u)
77
.required(),
8-
description: joi
8+
description: joi
99
.string()
10-
.pattern(/^[a-zA-Z0-9\s]+$/)
10+
.pattern(/^[\p{L}\p{N}\p{P}\p{Z}]+$/u)
1111
.required(),
1212
mainObjective: joi
1313
.string()
14-
.pattern(/^[a-zA-Z0-9\s]+$/)
14+
.pattern(/^[\p{L}\p{N}\p{P}\p{Z}]+$/u)
1515
.required(),
1616
modeOfExecution: joi
1717
.string()
18-
.pattern(/^[a-zA-Z0-9\s]+$/)
18+
.pattern(/^[\p{L}\p{N}\p{P}\p{Z}]+$/u)
1919
.required(),
2020
duration: joi
2121
.string()

0 commit comments

Comments
 (0)