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

Add Approved/disapproved (#3917)

This commit is contained in:
Fanboynz 2024-05-15 13:51:27 +12:00 committed by GitHub
parent e03f1a6955
commit 7f0b2f4a5e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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