CodeQL library for Python
codeql/python-all 3.0.1-dev (changelog, source)
Search

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)