CodeQL library for Python
codeql/python-all 1.0.1 (changelog, source)

Predicate Make::hasConsecutiveDots

Holds if seq contains two consecutive dots .. or escaped dots.

At least one of these dots is not intended to be a subdomain separator, so we avoid flagging the pattern in this case.

Import path

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