add support for String.prototype.replaceAll

This commit is contained in:
Erik Krogh Kristensen
2020-09-17 14:00:44 +02:00
parent 0dbdbfa659
commit b09015380a
17 changed files with 41 additions and 36 deletions

View File

@@ -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)