CodeQL queries 1.25
Skip to end of metadata
Go to start of metadata

Finds new expressions of the form `new RegExp(...)`

import javascript

from NewExpr new
where new.getCalleeName() = "RegExp"
select new