fix: correct iso6391

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2023-05-20 08:49:41 +02:00
parent db43e1db3f
commit 0b06bcf67b
2 changed files with 65 additions and 84 deletions

View file

@ -31,6 +31,7 @@ const schema = Joi.object<RawNoteFrontmatter>({
robots: Joi.string().optional().default(defaultNoteFrontmatter.robots),
lang: Joi.string()
.valid(...ISO6391)
.lowercase()
.optional()
.default(defaultNoteFrontmatter.lang),
dir: Joi.string()