Function isValidDomain

  • Check if a string is a valid domain name. An empty string is allowed and considered valid.

    Returns

    Whether the domain matches the rules.

    Parameters

    • domain: string

      Domain to validate.

    Returns boolean

Generated using TypeDoc