mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
QL code and tests for C#/C++/JavaScript.
This commit is contained in:
17
javascript/ql/src/RegExp/MalformedRegExp.ql
Normal file
17
javascript/ql/src/RegExp/MalformedRegExp.ql
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @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 + "."
|
||||
Reference in New Issue
Block a user