mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
JS: previously js/case-sensitive-middleware-path was not taking into consideration unknown flags
This commit is contained in:
@@ -65,7 +65,7 @@ predicate isCaseSensitiveMiddleware(
|
||||
arg = call.getArgument(0) and
|
||||
regexp.getAReference().flowsTo(arg) and
|
||||
exists(string flags |
|
||||
flags = regexp.getFlags() and
|
||||
flags = regexp.tryGetFlags() and
|
||||
not RegExp::isIgnoreCase(flags)
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user