mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-06 19:02:30 +01:00
Disregard possible trailing carriage return characters
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/1101
This commit is contained in:
parent
b34e6da6ec
commit
0d1a532bfa
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user