Skip to content

Commit 76c6a52

Browse files
committed
Ruby: add clarifying comment
1 parent 76587c4 commit 76c6a52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby/ql/src/queries/security/cwe-116/IncompleteSanitization.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ string metachar() { result = "'\"\\&<>\n\r\t*|{}[]%$".charAt(_) }
2828
predicate isSimple(RE::RegExpTerm t) {
2929
t instanceof RE::RegExpConstant
3030
or
31-
isSimple(t.(RE::RegExpGroup).getAChild())
31+
isSimple(t.(RE::RegExpGroup).getAChild()) // N.B. a group has only one child
3232
or
3333
isSimpleCharacterClass(t)
3434
or

0 commit comments

Comments
 (0)