mirror of
https://github.com/github/codeql.git
synced 2025-12-22 11:46:32 +01:00
Ruby: add clarifying comment
This commit is contained in:
@@ -28,7 +28,7 @@ string metachar() { result = "'\"\\&<>\n\r\t*|{}[]%$".charAt(_) }
|
||||
predicate isSimple(RE::RegExpTerm t) {
|
||||
t instanceof RE::RegExpConstant
|
||||
or
|
||||
isSimple(t.(RE::RegExpGroup).getAChild())
|
||||
isSimple(t.(RE::RegExpGroup).getAChild()) // N.B. a group has only one child
|
||||
or
|
||||
isSimpleCharacterClass(t)
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user