mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-05 06:15:31 +00:00
refactor regexFilter config
This commit is contained in:
parent
e7b3a6335b
commit
42209615ab
3 changed files with 71 additions and 23 deletions
|
|
@ -20,12 +20,6 @@ Vereinfacht kann man sagen, dass einzelnen Router ODER-verknüpft und die jeweil
|
|||
|
||||
## Konfiguration
|
||||
|
||||
|Feld|Beschreibung|Default|
|
||||
|----|------------|-------|
|
||||
|filter|Enthält eine Liste der einzelnen Filter||
|
||||
|
||||
#### `filter:`
|
||||
|
||||
|Feld|Beschreibung|Default|
|
||||
|----|------------|-------|
|
||||
|name|Beliebiger Name des Filters||
|
||||
|
|
@ -43,17 +37,16 @@ Vereinfacht kann man sagen, dass einzelnen Router ODER-verknüpft und die jeweil
|
|||
- type: module
|
||||
res: filter.regexFilter
|
||||
config:
|
||||
filter:
|
||||
- name: "Zvei filter"
|
||||
checks:
|
||||
- field: zvei
|
||||
regex: "65[0-9]{3}" # all zvei with starting 65
|
||||
- name: "FMS Stat 3"
|
||||
checks:
|
||||
- field: mode
|
||||
regex: "fms" # check if mode is fms
|
||||
- field: status
|
||||
regex: "3" # check if status is 3
|
||||
- name: "Zvei filter"
|
||||
checks:
|
||||
- field: zvei
|
||||
regex: "65[0-9]{3}" # all zvei with starting 65
|
||||
- name: "FMS Stat 3"
|
||||
checks:
|
||||
- field: mode
|
||||
regex: "fms" # check if mode is fms
|
||||
- field: status
|
||||
regex: "3" # check if status is 3
|
||||
```
|
||||
|
||||
---
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue