method ValidateTransformation.prototype.validateHostname
ValidateTransformation.prototype.validateHostname(
hostname: string,
ruleText: string,
hasLimitModifier: boolean,
lineNumber: number | undefined,
errors: IValidationError[],
): boolean

Validates a hostname for the blocklist.

Parameters

hostname: string
ruleText: string
hasLimitModifier: boolean
lineNumber: number | undefined

Return Type

boolean

Usage

import { ValidateTransformation } from ".";