CodeQL library for JavaScript/TypeScript
codeql/javascript-all 2.1.1-dev (changelog, source)
Search

Predicate Make::hasTopLevelDomainEnding

Holds if the given regular expression term contains top-level domain preceded by a dot, such as .com.

Import path

import codeql.regex.HostnameRegexp
predicate hasTopLevelDomainEnding(RegExpSequence seq)