Add checked/unchecked to set-cookie (#3923)

This commit is contained in:
Fanboynz 2024-08-20 06:40:33 +12:00 committed by GitHub
parent 34047daa06
commit 3e2171f550
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -3848,6 +3848,7 @@ function setCookie(
'hide', 'hidden',
'essential', 'nonessential',
'dismiss', 'dismissed',
'checked', 'unchecked',
];
const normalized = value.toLowerCase();
const match = /^("?)(.+)\1$/.exec(normalized);