7
7
8
8
import regexp.RegExpTreeView // re-export
9
9
private import regexp.internal.ParseRegExp
10
- private import regexp.internal.RegExpConfiguration as RegExpConfiguration // TODO: other name?
10
+ private import regexp.internal.RegExpTracking as RegExpTracking
11
11
private import codeql.ruby.AST as Ast
12
12
private import codeql.ruby.CFG
13
13
private import codeql.ruby.DataFlow
@@ -122,7 +122,7 @@ class StdLibRegExpInterpretation extends RegExpInterpretation::Range {
122
122
mce .getMethodName ( ) = [ "match" , "match?" ] and
123
123
this = mce .getArgument ( 0 ) and
124
124
// exclude https://ruby-doc.org/core-2.4.0/Regexp.html#method-i-match
125
- not mce .getReceiver ( ) = RegExpConfiguration :: trackRegexpType ( )
125
+ not mce .getReceiver ( ) = RegExpTracking :: trackRegexpType ( )
126
126
)
127
127
}
128
128
}
@@ -132,7 +132,7 @@ class StdLibRegExpInterpretation extends RegExpInterpretation::Range {
132
132
* as a part of a regular expression.
133
133
*/
134
134
cached
135
- DataFlow:: Node regExpSource ( DataFlow:: Node re ) { result = RegExpConfiguration :: regExpSource ( re ) }
135
+ DataFlow:: Node regExpSource ( DataFlow:: Node re ) { result = RegExpTracking :: regExpSource ( re ) }
136
136
137
137
/**
138
138
* Holds if `exec` is a node where `regexp` is interpreted as a regular expression and
@@ -171,7 +171,7 @@ private predicate regexExecution(
171
171
// also see `StdLibRegExpInterpretation`
172
172
not (
173
173
call .getMethodName ( ) = [ "match" , "match?" ] and
174
- call .getReceiver ( ) = RegExpConfiguration :: trackRegexpType ( )
174
+ call .getReceiver ( ) = RegExpTracking :: trackRegexpType ( )
175
175
)
176
176
)
177
177
or
0 commit comments