contentful-node-apps-toolkit
    Preparing search index...

    Function isValidNetworkAddress

    • Returns whether a string is a valid entry for a Contentful Function or App Action's allowNetworks field.

      The TLD is bounded at 63 characters per RFC 1035 ยง2.3.4, the maximum length of a single DNS label. ICANN has delegated long gTLDs (.hosting, .international) since 2012, so a shorter bound rejects valid addresses.

      Parameters

      • address: string

      Returns boolean