mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-09 23:25:53 +08:00
allowing shorthand hex
This commit is contained in:
parent
b4288d9bd2
commit
69da49d71a
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ const CONFIG_SCHEMA = joi.object({
|
|||
customTheme: joi.boolean(),
|
||||
customThemeColors: joi
|
||||
.array()
|
||||
.items(joi.string().pattern(/^#[A-Fa-f0-9]{6}$/))
|
||||
.items(joi.string().pattern(/^#([\da-f]{3}){1,2}$/i))
|
||||
.length(9),
|
||||
favThemes: joi.array().items(joi.string()),
|
||||
showKeyTips: joi.boolean(),
|
||||
|
|
Loading…
Add table
Reference in a new issue