filter_modify: use new regex_find() API and fix group matching
@@ -403,7 +403,7 @@ static inline bool helper_msgpack_object_matches_regex(msgpack_object * obj,
return false;
}
- return (flb_regex_do(regex, key, len, &result) == 0);
+ return flb_regex_match(regex, (unsigned char *) key, len) > 0;
}
static inline bool kv_key_matches_regex(msgpack_object_kv * kv,
