Skip to content

Commit f766981

Browse files
committed
Address review comments
1 parent 790d977 commit f766981

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ruby/ql/lib/codeql/ruby/ast/Constant.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ class ConstantValue extends TConstantValue {
128128
or
129129
result = ":" + this.getSymbol()
130130
or
131+
exists(string s, string flags |
132+
this.isRegExpWithFlags(s, flags) and
133+
result = "/" + s + "/" + flags
134+
)
135+
or
131136
result = this.getBoolean().toString()
132137
or
133138
this.isNil() and result = "nil"

ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowPublic.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ class Content extends TContent {
203203

204204
/** Provides different sub classes of `Content`. */
205205
module Content {
206-
/** An element in an collection, for example an element in array or in a hash. */
206+
/** An element in a collection, for example an element in an array or in a hash. */
207207
class ElementContent extends Content, TElementContent { }
208208

209209
/** An element in a collection at a known index. */

0 commit comments

Comments
 (0)