1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-03 02:37:21 +02:00

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);