Add dismissed to set-cookie (#3921)

This commit is contained in:
Fanboynz 2024-07-28 00:26:59 +12:00 committed by GitHub
parent 2dd591c1d7
commit 76246f2c59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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