mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56: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) {
|
predicate isSimple(RE::RegExpTerm t) {
|
||||||
t instanceof RE::RegExpConstant
|
t instanceof RE::RegExpConstant
|
||||||
or
|
or
|
||||||
isSimple(t.(RE::RegExpGroup).getAChild())
|
isSimple(t.(RE::RegExpGroup).getAChild()) // N.B. a group has only one child
|
||||||
or
|
or
|
||||||
isSimpleCharacterClass(t)
|
isSimpleCharacterClass(t)
|
||||||
or
|
or
|
||||||
|
|||||||
Reference in New Issue
Block a user