mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-27 08:13:28 +08:00
parent
10159702ff
commit
1ea9650cce
1 changed files with 4 additions and 1 deletions
|
@ -34,7 +34,10 @@ const CONFIG_SCHEMA = joi.object({
|
|||
time: joi.number().min(0),
|
||||
mode: joi.string().valid("time", "words", "quote", "zen", "custom"),
|
||||
quoteLength: joi.array().items(joi.number()),
|
||||
language: joi.string().max(50).token(),
|
||||
language: joi
|
||||
.string()
|
||||
.max(50)
|
||||
.pattern(/^[a-zA-Z0-9_+]+$/),
|
||||
fontSize: joi.number().min(0),
|
||||
freedomMode: joi.boolean(),
|
||||
difficulty: joi.string().valid("normal", "expert", "master"),
|
||||
|
|
Loading…
Reference in a new issue