isValidANSSegment

Checks if a fragment of a name, either the domain or subdomain, is valid

Return

boolean indicating if the fragment is a valid fragment

Parameters

fragment

A fragment of a name, either the domain or subdomain