Skip to content

Commit 45316b6

Browse files
committed
rename RegExpConfiguration to RegExpTracking
1 parent 25e65e0 commit 45316b6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ruby/ql/lib/codeql/ruby/Regexp.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import regexp.RegExpTreeView // re-export
99
private import regexp.internal.ParseRegExp
10-
private import regexp.internal.RegExpConfiguration as RegExpConfiguration // TODO: other name?
10+
private import regexp.internal.RegExpTracking as RegExpTracking
1111
private import codeql.ruby.AST as Ast
1212
private import codeql.ruby.CFG
1313
private import codeql.ruby.DataFlow
@@ -122,7 +122,7 @@ class StdLibRegExpInterpretation extends RegExpInterpretation::Range {
122122
mce.getMethodName() = ["match", "match?"] and
123123
this = mce.getArgument(0) and
124124
// 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()
126126
)
127127
}
128128
}
@@ -132,7 +132,7 @@ class StdLibRegExpInterpretation extends RegExpInterpretation::Range {
132132
* as a part of a regular expression.
133133
*/
134134
cached
135-
DataFlow::Node regExpSource(DataFlow::Node re) { result = RegExpConfiguration::regExpSource(re) }
135+
DataFlow::Node regExpSource(DataFlow::Node re) { result = RegExpTracking::regExpSource(re) }
136136

137137
/**
138138
* Holds if `exec` is a node where `regexp` is interpreted as a regular expression and
@@ -171,7 +171,7 @@ private predicate regexExecution(
171171
// also see `StdLibRegExpInterpretation`
172172
not (
173173
call.getMethodName() = ["match", "match?"] and
174-
call.getReceiver() = RegExpConfiguration::trackRegexpType()
174+
call.getReceiver() = RegExpTracking::trackRegexpType()
175175
)
176176
)
177177
or

0 commit comments

Comments
 (0)