Skip to content

Commit

Permalink
Add ? case to the table
Browse files Browse the repository at this point in the history
  • Loading branch information
expede committed Jul 2, 2024
1 parent 5f4d564 commit 743323b
Showing 1 changed file with 13 additions and 37 deletions.
50 changes: 13 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,9 @@ Policies are structured as trees. With the exception of subtrees under `some`, `

Selector syntax is closely based on a subset of [jq]. They operate on an [Invocation]'s `args` object.

For example, consider the following:
For example, consider the following `args` from an `Invocation`:

``` js
// Invocation
``` json
{
"args": {
"from": "[email protected]",
Expand All @@ -214,13 +213,7 @@ NOTE: You cannot add _any_ indentation to this table if you want

<tbody>
<tr>
<td>

``` json
"."
```

</td>
<td><pre>"."</pre></td>
<td>

```json
Expand All @@ -237,13 +230,7 @@ NOTE: You cannot add _any_ indentation to this table if you want
</tr>

<tr>
<td>

``` json
".title"
```

</td>
<td><pre>".title"</pre></td>

<td>

Expand All @@ -255,15 +242,7 @@ NOTE: You cannot add _any_ indentation to this table if you want
</tr>

<tr>
<td>


``` json
".cc"
```

</td>

<td><pre>".cc"</pre></td>
<td>

``` json
Expand All @@ -274,16 +253,9 @@ NOTE: You cannot add _any_ indentation to this table if you want
</tr>

<tr>
<td><pre>".to[1]"</pre></td>
<td>

``` json
".to[1]"
```

</td>
<td>


``` json
"[email protected]"
```
Expand All @@ -292,18 +264,22 @@ NOTE: You cannot add _any_ indentation to this table if you want
</tr>

<tr>
<td><pre>".to[-1]"</pre></td>
<td>

``` json
".to[-1]"
"[email protected]"
```

</td>
</tr>

<tr>
<td><pre>".to[99]?"</pre></td>
<td>


``` json
"[email protected]"
null
```

</td>
Expand Down

0 comments on commit 743323b

Please sign in to comment.