CodeQL library for JavaScript
Search

Predicate RegExp::maybeGlobal

Holds if flags includes the g flag or is the unknown flag ?.

Import path

import javascript
predicate maybeGlobal(string flags)