mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-26 07:44:01 +08:00
not allowing spaces or double quotes in custom background
This commit is contained in:
parent
fb4c47792c
commit
26b72d6b6c
1 changed files with 1 additions and 1 deletions
|
@ -1632,7 +1632,7 @@ export function setCustomBackground(value: string, nosave?: boolean): boolean {
|
|||
(/(https|http):\/\/(www\.|).+\..+\/.+(\.png|\.gif|\.jpeg|\.jpg)/gi.test(
|
||||
value
|
||||
) &&
|
||||
!/[<>]/.test(value)) ||
|
||||
!/[<> "]/.test(value)||
|
||||
value == ""
|
||||
) {
|
||||
config.customBackground = value;
|
||||
|
|
Loading…
Reference in a new issue