[feature]verify regex expression
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include "maat_compile.h"
|
||||
#include "alignment.h"
|
||||
#include "ip_matcher.h"
|
||||
#include "adapter_hs.h"
|
||||
#include "maat_garbage_collection.h"
|
||||
#include "maat_group.h"
|
||||
#include "maat_expr.h"
|
||||
@@ -471,6 +472,15 @@ int maat_helper_read_column(const char *table_line, int Nth_column,
|
||||
return get_column_pos(table_line, Nth_column, column_offset, column_len);
|
||||
}
|
||||
|
||||
int maat_helper_verify_regex_expression(const char *regex_expr)
|
||||
{
|
||||
if (NULL == regex_expr) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return adapter_hs_verify_regex_expression(regex_expr, NULL);
|
||||
}
|
||||
|
||||
int maat_get_table_id(struct maat *maat_instance, const char *table_name)
|
||||
{
|
||||
int table_id = -1;
|
||||
|
||||
Reference in New Issue
Block a user