mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Add stackToMatch vararg to trusted-prune-inbound-object.js
As discussed with filter list maintainers.
This commit is contained in:
parent
574bd8fba3
commit
7dd98258e9
1 changed files with 2 additions and 1 deletions
|
|
@ -4123,6 +4123,7 @@ function trustedPruneInboundObject(
|
|||
if ( rawNeedlePaths !== '' ) {
|
||||
needlePaths.push(...rawNeedlePaths.split(/ +/));
|
||||
}
|
||||
const stackNeedle = safe.initPattern(extraArgs.stackToMatch || '', { canNegate: true });
|
||||
const mustProcess = root => {
|
||||
for ( const needlePath of needlePaths ) {
|
||||
if ( objectFindOwnerFn(root, needlePath) === false ) {
|
||||
|
|
@ -4150,7 +4151,7 @@ function trustedPruneInboundObject(
|
|||
objBefore,
|
||||
rawPrunePaths,
|
||||
rawNeedlePaths,
|
||||
{ matchAll: true },
|
||||
stackNeedle,
|
||||
extraArgs
|
||||
);
|
||||
args[argIndex-1] = objAfter || objBefore;
|
||||
|
|
|
|||
Loading…
Reference in a new issue