Preparing search index...

    Function isValidUrl

    • Validates URL format.

      Accepts URLs with or without protocol. URLs without protocol are tested with https:// prefix. Requires a valid hostname with at least one dot (e.g., example.com).

      Parameters

      • url: string

        URL string to validate

      Returns boolean

      true if URL is valid