1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-14 23:12:28 +02:00

Disregard possible trailing carriage return characters

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1101
This commit is contained in:
Raymond Hill 2020-06-06 17:42:21 -04:00
parent b34e6da6ec
commit 0d1a532bfa
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -124,7 +124,7 @@
};
const translateAdguardCSSInjectionFilter = function(suffix) {
const matches = /^([^{]+)\{([^}]+)\}$/.exec(suffix);
const matches = /^([^{]+)\{([^}]+)\}\s*$/.exec(suffix);
if ( matches === null ) { return ''; }
const selector = matches[1].trim();
const style = matches[2].trim();