aboutsummaryrefslogtreecommitdiff
path: root/cleanregex.c
diff options
context:
space:
mode:
Diffstat (limited to 'cleanregex.c')
-rw-r--r--cleanregex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cleanregex.c b/cleanregex.c
index 20f3154..a886d79 100644
--- a/cleanregex.c
+++ b/cleanregex.c
@@ -22,9 +22,9 @@ void cleanrgx_compile(
free(s);
}
-int64_t cleanrgx_exec(int64_t* rgx, CleanString* cs) {
+int64_t cleanrgx_exec(int64_t* rgx, int64_t flags, CleanString* cs) {
char* s = (char*) clstocs(cs);
- int64_t result = regexec((regex_t*) rgx, s, 0, NULL, 0);
+ int64_t result = regexec((regex_t*) rgx, s, 0, NULL, flags);
free(s);
if (!result) {
return 1;