Skip to content
Snippets Groups Projects
Commit 8fabf294 authored by Suvendhu Hansa's avatar Suvendhu Hansa :speech_balloon:
Browse files

Support extended regex

parent a32e3250
No related branches found
No related tags found
1 merge request!17Support extended regex
Pipeline #147049 passed
...@@ -64,7 +64,7 @@ static bool ruleng_bus_blob_compare_primitive( ...@@ -64,7 +64,7 @@ static bool ruleng_bus_blob_compare_primitive(
if (strcmp(blobmsg_get_string(a), blobmsg_get_string(b)) != 0) if (strcmp(blobmsg_get_string(a), blobmsg_get_string(b)) != 0)
goto exit; goto exit;
} else { } else {
reti = regcomp(&regex_exp, blobmsg_get_string(a), 0); reti = regcomp(&regex_exp, blobmsg_get_string(a), REG_EXTENDED);
if (reti) { if (reti) {
RULENG_ERR("Could not compile regex\n"); RULENG_ERR("Could not compile regex\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment