validDomainChars top-level constant
String
const validDomainChars
validDomainChars
is a constant RegExp pattern string intended to match
any character that is not included in the invalidDomainChars string,
representing valid characters allowed in a domain name.
This constant can be used to create a RegExp object to check whether a given string or part of a string conforms to the character restrictions of domain names.
Implementation
const validDomainChars = '[^$invalidDomainChars]';