mirror of
https://github.com/github/codeql.git
synced 2026-01-22 10:52:58 +01:00
18 lines
496 B
Plaintext
18 lines
496 B
Plaintext
/**
|
|
* @name Malformed regular expression
|
|
* @description Regular expressions that do not adhere to the ECMAScript standard may be interpreted
|
|
* differently across platforms and should be avoided.
|
|
* @kind problem
|
|
* @problem.severity recommendation
|
|
* @id js/regex/syntax-error
|
|
* @tags portability
|
|
* maintainability
|
|
* regular-expressions
|
|
* @precision low
|
|
*/
|
|
|
|
import javascript
|
|
|
|
from RegExpParseError repe
|
|
select repe, "Malformed regular expression: " + repe + "."
|