diff --git a/src/js/static-ext-filtering.js b/src/js/static-ext-filtering.js index 1b1533d95..70c7ce988 100644 --- a/src/js/static-ext-filtering.js +++ b/src/js/static-ext-filtering.js @@ -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();