|
Chatterino
|
MessagePredicate checking whether the message matches a given regex. More...
#include <RegexPredicate.hpp>
Public Member Functions | |
| RegexPredicate (const QString ®ex) | |
| Create a RegexPredicate with a regex to match the message against. More... | |
| bool | appliesTo (const Message &message) |
| Checks whether the message matches the regex passed in the constructor. More... | |
MessagePredicate checking whether the message matches a given regex.
This predicate will only allow messages whose messageText match the given regex.
| chatterino::RegexPredicate::RegexPredicate | ( | const QString & | regex | ) |
Create a RegexPredicate with a regex to match the message against.
The message is being matched case-insensitively.
| regex | the regex to match the message against |
|
virtual |
Checks whether the message matches the regex passed in the constructor.
The check is done case-insensitively.
| message | the message to check |
Implements chatterino::MessagePredicate.
1.8.13