mirror of https://github.com/gorhill/uBlock.git
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 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();
|
||||||
|
|
Loading…
Reference in New Issue