mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
add support for String.prototype.replaceAll
This commit is contained in:
@@ -31,7 +31,7 @@ predicate isStringSplitOrReplace(MethodCallExpr mce) {
|
||||
mce.getMethodName() = name and
|
||||
mce.getNumArgument() = arity
|
||||
|
|
||||
name = "replace" and arity = 2
|
||||
name = ["replace", "replaceAll"] and arity = 2
|
||||
or
|
||||
name = "split" and
|
||||
(arity = 1 or arity = 2)
|
||||
|
||||
Reference in New Issue
Block a user