GeoLeaf Core API - v3.0.0
    Preparing search index...

    Options for URL validation, on top of ValidatorOptions.

    interface ValidateUrlOptions {
        throwOnError?: boolean;
        allowedProtocols?: string[];
        allowDataImages?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    throwOnError?: boolean

    Throw a ValidationError instead of returning { valid: false }. Defaults to false, which is what makes the validators usable in a boolean expression.

    allowedProtocols?: string[]

    Protocols accepted, e.g. ["http:", "https:"]. Note the trailing colon.

    allowDataImages?: boolean

    Accept data: URLs whose MIME type is an image. Other data URLs stay rejected.