Ignore rules with subdocument property
This commit is contained in:
parent
f093e55f85
commit
bd10649982
1 changed files with 8 additions and 0 deletions
|
@ -1191,6 +1191,14 @@ adblock_add_url_pattern (gchar* prefix,
|
|||
opts = g_strdup_printf ("t=%s,r=%s", type, patt);
|
||||
}
|
||||
|
||||
if (g_regex_match_simple ("subdocument", opts,
|
||||
G_REGEX_CASELESS, G_REGEX_MATCH_NOTEMPTY))
|
||||
{
|
||||
g_free (patt);
|
||||
g_free (opts);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
format_patt = adblock_fixup_regexp (prefix, patt);
|
||||
|
||||
adblock_debug ("got: %s opts %s", format_patt, opts);
|
||||
|
|
Loading…
Reference in a new issue