Add hide and hidden to set-cookie (#3918)

This commit is contained in:
Fanboynz 2024-06-14 11:32:11 -07:00 committed by GitHub
parent 62fdd8b4a4
commit bdb99862ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3785,6 +3785,7 @@ function setCookie(
'yes', 'y', 'no', 'n',
'necessary', 'required',
'approved', 'disapproved',
'hide', 'hidden',
];
const normalized = value.toLowerCase();
const match = /^("?)(.+)\1$/.exec(normalized);