Adds capture action to verifyCC

This commit is contained in:
Felipe Zimmerle
2018-03-09 11:26:24 -03:00
parent 77a885da5f
commit df25c48f53
5 changed files with 65 additions and 5 deletions

View File

@@ -36,7 +36,9 @@ class VerifyCC : public Operator {
~VerifyCC();
int luhnVerify(const char *ccnumber, int len);
bool evaluate(Transaction *transaction, const std::string &input) override;
bool evaluate(Transaction *t, Rule *rule,
const std::string& input,
std::shared_ptr<RuleMessage> ruleMessage) override;
bool init(const std::string &param, std::string *error) override;
private:
pcre *m_pc;