Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
CodeQL library for Swift
codeql/swift-all 4.3.0 (changelog, source)

Predicate Make::hasTopLevelDomainEnding

Holds if the given sequence seq contains top-level domain preceded by a dot, such as .com, excluding cases where this is at the very beginning of the regexp.

i is bound to the index of the last child in the top-level domain part.

Import path

import codeql.regex.HostnameRegexp
predicate hasTopLevelDomainEnding(RegExpSequence seq, int i)