@metreeca/core - v0.9.18
    Preparing search index...

    Function isURI

    • Checks if a value is a valid URI.

      Validates URIs according to RFC 3986, restricting identifiers to ASCII characters only.

      Parameters

      • value: unknown

        The value to validate as a URI

      • variant: Variant = "relative"

        The identifier variant to validate against (default: "relative")

      Returns value is string

      true if the value is a valid ASCII-only URI matching the specified variant; false otherwise