function validateEmbedHosts
validateEmbedHosts(input: string): string | null

Validate a comma-separated list of host patterns. Returns null if all valid, or the first error message.

Parameters

input: string

Return Type

string | null

Usage

import { validateEmbedHosts } from "docs/embed.ts";