mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-26 15:54:35 +08:00
fix(server): config saving with layout that includes a dash (mart-e) (#5193)
* [FIX] Accept layout with dash At least seht-drai and ergo-l is not compatible * add regex --------- Co-authored-by: Miodec <jack@monkeytype.com>
This commit is contained in:
parent
9aeaa31d2c
commit
1bb0bdffb0
1 changed files with 5 additions and 1 deletions
|
@ -77,7 +77,11 @@ const CONFIG_SCHEMA = joi.object({
|
|||
keymapLegendStyle: joi
|
||||
.string()
|
||||
.valid("lowercase", "uppercase", "blank", "dynamic"),
|
||||
keymapLayout: joi.string().valid().max(50).token(),
|
||||
keymapLayout: joi
|
||||
.string()
|
||||
.regex(/[\w-_]+/)
|
||||
.valid()
|
||||
.max(50),
|
||||
keymapShowTopRow: joi.string().valid("always", "layout", "never"),
|
||||
fontFamily: joi
|
||||
.string()
|
||||
|
|
Loading…
Reference in a new issue