mirror of https://github.com/gorhill/uBlock.git
code review: fix regex used to report cosmetic filters in logger
This commit is contained in:
parent
225bab9550
commit
098f3baadd
|
@ -210,7 +210,7 @@ vAPI.DOMFilterer.prototype = {
|
|||
if ( all !== true && this.hideNodeAttr !== undefined ) {
|
||||
selectors = selectors
|
||||
.replace('[' + this.hideNodeAttr + ']', '')
|
||||
.replace(/^,\n|^\n/, '');
|
||||
.replace(/^,\n|,\n$/gm, '');
|
||||
if ( selectors === '' ) { continue; }
|
||||
}
|
||||
out.declarative.push([ selectors, entry.declarations ]);
|
||||
|
|
Loading…
Reference in New Issue