CodeQL library for Ruby
codeql/ruby-all 2.0.4-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)