CodeQL library for JavaScript
Search

Predicate getRoot

Gets the root containing the given term, that is, the root of the literal, or a branch of the root disjunction.

Import path

import semmle.javascript.security.performance.ReDoSUtil
RegExpRoot getRoot(RegExpTerm term)