method BaseFormatter.prototype.extractHostname
BaseFormatter.prototype.extractHostname(rule: string): string | null

Extracts hostname from an adblock rule

Parameters

rule: string

Return Type

string | null

Usage

import { BaseFormatter } from ".";