-
Notifications
You must be signed in to change notification settings - Fork 12
Filters: Children
Children filters are a complex way to delegate matches found in the parent. Children filters can be put in an infinite amount of times, allowing for extremely complex filters. Children filters process and change text the same way that normal filters do.
If the parent filter uses replace type children, everything that matched that filter will be given to the children to be processed.
Find String: hello
Find Type: Upper lower
Message: Hello hello heLLO!
The children will each be given the following messages with the correct color formatting (in order) Hello
, hello
, heLLO
.
Whatever is altered by children will be sent back to replace the current match. When the text is replaced, the replaced text will go to the next child in the list and the cycle repeats.
Main message: Hello how is it going?
Parent filter:
Received Hello
Sent to child ->
- Altered
Hello
toHi
Sent Hi
to next child ->
- Altered
Hi
tohi
Sent back to parent
- Replace
Hello
withhi
Final message: hi how is it going?