method RuleUtils.extractHostname
RuleUtils.extractHostname(pattern: string): string | null

Extracts hostname from an adblock rule pattern using AGTree.

Parameters

pattern: string

Return Type

string | null

Usage

import { RuleUtils } from ".";