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
1 changed files with 1 additions and 1 deletions

View File

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