mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 18:25:21 -04:00
fix: correct iso6391
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
db43e1db3f
commit
0b06bcf67b
2 changed files with 65 additions and 84 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue