mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
rename RegExpConfiguration to RegExpTracking
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
import regexp.RegExpTreeView // re-export
|
||||
private import regexp.internal.ParseRegExp
|
||||
private import regexp.internal.RegExpConfiguration as RegExpConfiguration // TODO: other name?
|
||||
private import regexp.internal.RegExpTracking as RegExpTracking
|
||||
private import codeql.ruby.AST as Ast
|
||||
private import codeql.ruby.CFG
|
||||
private import codeql.ruby.DataFlow
|
||||
@@ -122,7 +122,7 @@ class StdLibRegExpInterpretation extends RegExpInterpretation::Range {
|
||||
mce.getMethodName() = ["match", "match?"] and
|
||||
this = mce.getArgument(0) and
|
||||
// exclude https://ruby-doc.org/core-2.4.0/Regexp.html#method-i-match
|
||||
not mce.getReceiver() = RegExpConfiguration::trackRegexpType()
|
||||
not mce.getReceiver() = RegExpTracking::trackRegexpType()
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -132,7 +132,7 @@ class StdLibRegExpInterpretation extends RegExpInterpretation::Range {
|
||||
* as a part of a regular expression.
|
||||
*/
|
||||
cached
|
||||
DataFlow::Node regExpSource(DataFlow::Node re) { result = RegExpConfiguration::regExpSource(re) }
|
||||
DataFlow::Node regExpSource(DataFlow::Node re) { result = RegExpTracking::regExpSource(re) }
|
||||
|
||||
/**
|
||||
* Holds if `exec` is a node where `regexp` is interpreted as a regular expression and
|
||||
@@ -171,7 +171,7 @@ private predicate regexExecution(
|
||||
// also see `StdLibRegExpInterpretation`
|
||||
not (
|
||||
call.getMethodName() = ["match", "match?"] and
|
||||
call.getReceiver() = RegExpConfiguration::trackRegexpType()
|
||||
call.getReceiver() = RegExpTracking::trackRegexpType()
|
||||
)
|
||||
)
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user