pass studied pattern
This commit is contained in:
parent
ad6b7b236f
commit
93f4654c54
1 changed files with 5 additions and 7 deletions
12
src/node.c
12
src/node.c
|
@ -268,13 +268,11 @@ node * r3_tree_matchl(const node * n, char * path, int path_len, match_entry * e
|
||||||
|
|
||||||
rc = pcre_exec(
|
rc = pcre_exec(
|
||||||
n->pcre_pattern, /* the compiled pattern */
|
n->pcre_pattern, /* the compiled pattern */
|
||||||
|
n->pcre_extra,
|
||||||
// PCRE Study makes this slow
|
path, /* the subject string */
|
||||||
NULL, // n->pcre_extra, /* no extra data - we didn't study the pattern */
|
path_len, /* the length of the subject */
|
||||||
path, /* the subject string */
|
0, /* start at offset 0 in the subject */
|
||||||
path_len, /* the length of the subject */
|
0, /* default options */
|
||||||
0, /* start at offset 0 in the subject */
|
|
||||||
0, /* default options */
|
|
||||||
n->ov, /* output vector for substring information */
|
n->ov, /* output vector for substring information */
|
||||||
n->ov_cnt); /* number of elements in the output vector */
|
n->ov_cnt); /* number of elements in the output vector */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue