Skip to content

Commit b666679

Browse files
authored
docs(metavariable-comparison): add lower and upper functions (#2495)
1 parent 580fd57 commit b666679

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/writing-rules/rule-syntax.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,8 @@ The `comparison` key accepts a Python expression using:
688688
- Lists, together with the `in`, and `not in` infix operators.
689689
- Strings, together with the `in` and `not in` infix operators, for substring containment.
690690
- Function `re.match()` to match a regular expression (without the optional `flags` argument).
691+
- Function `lower()` converts strings to lower case.
692+
- Function `upper()` converts strings to upper case.
691693

692694
You can use Semgrep metavariables such as `$MVAR`, which Semgrep evaluates as follows:
693695

0 commit comments

Comments
 (0)