method RuleUtils.detectSyntax
RuleUtils.detectSyntax(ruleText: string): string

Get the syntax type of a rule (AdGuard, uBlock Origin, ABP, Common).

Parameters

ruleText: string

Return Type

string

Usage

import { RuleUtils } from ".";