allowing shorthand hex

This commit is contained in:
Miodec 2022-02-04 12:28:31 +01:00
parent b4288d9bd2
commit 69da49d71a

View file

@ -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(),