Commit 92e70068 authored by Nils Goroll's avatar Nils Goroll Committed by Dridi Boukelmoune

vre: Use pcre2_match_context

parent 3fdce6cf
......@@ -201,7 +201,7 @@ vre_match(const vre_t *code, const char *subject, size_t length, size_t offset,
}
matches = pcre2_match(re, (PCRE2_SPTR)subject, length, offset,
options, data, NULL);
options, data, code->re_ctx);
if (datap != NULL && matches > VRE_ERROR_NOMATCH)
*datap = data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment