Closed sudongg closed 2 years ago
Yeah, you have a separator indicator at the end of your rule ^
and there is no separator on the URI you're trying to match. Drop the separator from the rule.
@TechnikEmpire
I tried to remove ^
, it was of no use, he return false in the IsMatch function.
if (ApplicableDomains.Count > 0 && !ApplicableDomains.Contains(hostWithoutWww))
{
return false;
}
I tried to remove ||
, he worked normally, and I received IsMatch message.
UrlFilter urlFilter = (UrlFilter)parser.ParseAbpFormattedRule("g.abc*.com^", 1);
I found that when ||
is included, the Parts property of UrlFilter is AnchoredDomainFragment.
After deleting ||
, the Parts property of UrlFilter is StringFragment, WildcardFragment, StringLiteralFragment, SeparatorFragment.
Returns true when separatorfragment;
In the rule list, for example, similar rules in easylist all start with ||
, how should I set it to load the Filter correctly.
Hi, I tried this library. Although it can read AdBlock rules, it can’t handle some AdBlock rules correctly. Below is the code:
Under normal circumstances, one should receive an IsMatch message. Am I doing something wrong?