Skip to content

Commit

Permalink
Require leading dot
Browse files Browse the repository at this point in the history
  • Loading branch information
expede committed Aug 6, 2024
1 parent 66513e6 commit c7a92a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ Selectors MUST only include the following features:
| Collection slices | `[7:11]`, `[2:]`, `[:42]`, `[0:-2]` | The range of elements by their indices. |
| Optional | `.foo?`, `["nope"]?` | Returns `null` on what would otherwise fail |

Any selection MAY begin and/or end with a single dot. Multiple dots (e.g. `..`, `...`) MUST NOT be used anywhere in a selector.
Every selection MUST begin and/or end with a single dot. Multiple dots (e.g. `..`, `...`) MUST NOT be used anywhere in a selector.

The optional operator is idempotent, and repeated optionals (`.foo???`) MUST be treated as a single one.

Expand Down

0 comments on commit c7a92a8

Please sign in to comment.