-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
### Matching rules | ||
|
||
* An empty "" pattern will match any signal. | ||
* A pattern without any asterisk either matches a signal directly or any signal that is a direct or indirect child of the branch matching the pattern. | ||
* An asterisk "`*`" at the end of a pattern will match any signal that is a direct child of the branch indentified by the preceding pattern. | ||
* A double asterisk "`**`" at the end of a pattern matches any signal that is a direct or indirect child of the branch identified by the preceding pattern. | ||
* An asterisk "`*`" in the middle (or beginning) of a pattern matches any signal that has a branch (of any name) at that position. | ||
* A double asterisk "`**`" in the middle (or beginning) of a pattern matches any signal that has zero or more branches at that position. | ||
|
||
### Examples | ||
|
||
| Path | Matches | | ||
|---------------------|--------------------------------------| | ||
| `""` | Everything | | ||
| `"Vehicle"` | Everything starting with `Vehicle` | | ||
| `"Vehicle.Cabin.Sunroof"` | `Vehicle.Cabin.Sunroof.Position`<br>`Vehicle.Cabin.Sunroof.Shade.Position`<br>`Vehicle.Cabin.Sunroof.Shade.Switch`<br>`Vehicle.Cabin.Sunroof.Switch` | | ||
| `"Vehicle.Cabin.Sunroof.**"` | `Vehicle.Cabin.Sunroof.Position`<br>`Vehicle.Cabin.Sunroof.Shade.Position`<br>`Vehicle.Cabin.Sunroof.Shade.Switch`<br>`Vehicle.Cabin.Sunroof.Switch` | | ||
| `"Vehicle.Cabin.Sunroof.*"` | `Vehicle.Cabin.Sunroof.Position`<br>`Vehicle.Cabin.Sunroof.Switch` | | ||
| `"Vehicle.Cabin.Sunroof.*.Position"` | `Vehicle.Cabin.Sunroof.Shade.Position` | | ||
| `"**.Sunroof.*.Position"` | `Vehicle.Cabin.Sunroof.Shade.Position` | | ||
| `"*.*.*.*.Position"` | `Vehicle.Cabin.Sunroof.Shade.Position` | | ||
| `"Vehicle.Cabin.Sunroof.**.Position"` | `Vehicle.Cabin.Sunroof.Position`<br>`Vehicle.Cabin.Sunroof.Shade.Position` | | ||
| `"**.Sunroof"` | Nothin | | ||
| `"**.Sunroof.**"` | `Vehicle.Cabin.Sunroof.Position`<br>`Vehicle.Cabin.Sunroof.Shade.Position`<br>`Vehicle.Cabin.Sunroof.Shade.Switch`<br>`Vehicle.Cabin.Sunroof.Switch` | | ||
| `"*.Sunroof"` | Nothing| | ||
| `"Sunroof"` | Nothing| |