CodeQL library for JavaScript
Search

Predicate CharacterEscapes::hasALikelyRegExpPatternMistake

Holds if src likely contains a regular expression mistake, to be reported by js/useless-regexp-character-escape.

Import path

import semmle.javascript.CharacterEscapes
predicate hasALikelyRegExpPatternMistake(RegExpPatternSource src)