CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.14 (changelog, source)
Search

Module StringOps

Import path

import javascript

Predicates

substringMethodName

Gets the name of a string method which performs substring extraction.

Classes

Concatenation

A data flow node that performs a string concatenation and returns the result.

ConcatenationLeaf

An operand to a concatenation that is not itself a concatenation.

ConcatenationNode

A data flow node that performs a string concatenation or occurs as an operand in a string concatenation.

ConcatenationOperand

An operand in a string concatenation.

ConcatenationRoot

A data flow node that performs a string concatenation, and is not an immediate operand in a larger string concatenation.

EndsWith

An expression that is equivalent to A.endsWith(B) or !A.endsWith(B).

HtmlConcatenationLeaf

A data flow node that is part of an HTML string concatenation, and is not itself a concatenation operator.

HtmlConcatenationNode

A data flow node that is part of an HTML string concatenation.

HtmlConcatenationRoot

The root node in a concatenation of one or more strings containing HTML fragments.

Includes

A expression that is equivalent to A.includes(B) or !A.includes(B).

RegExpTest

A data flow node whose boolean value indicates whether a regexp matches a given string.

StartsWith

A expression that is equivalent to A.startsWith(B) or !A.startsWith(B).

Modules

EndsWith
RegExpTest

Companion module to the RegExpTest class.

StartsWith