python: model string property of resultof finditer

This commit is contained in:
Rasmus Lerchedahl Petersen
2024-10-09 12:40:47 +02:00
parent 073189ed6b
commit 494b8bd7e1
2 changed files with 10 additions and 2 deletions

View File

@@ -3463,6 +3463,14 @@ module StdlibPrivate {
) and
preservesValue = false
)
or
// flow from input string to attribute on match object
exists(int arg | arg = methodName.(RegexExecutionMethod).getStringArgIndex() - offset |
input in ["Argument[" + arg + "]", "Argument[string:]"] and
methodName = "finditer" and
output = "ReturnValue.ListElement.Attribute[string]" and
preservesValue = true
)
)
}
}