CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.15-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)