1 Index: pcre-8.37/pcre_compile.c
2 ===================================================================
5 @@ -7177,14 +7177,26 @@
6 number. If the name is not found, set the value to 0 for a forward
10 ng = cd->named_groups;
11 for (i = 0; i < cd->names_found; i++, ng++)
13 if (namelen == ng->length &&
14 STRNCMP_UC_UC(name, ng->name, namelen) == 0)
19 + if (is_recurse) break;
20 + for (oc = cd->open_caps; oc != NULL; oc = oc->next)
22 + if (oc->number == recno)
30 - recno = (i < cd->names_found)? ng->number : 0;
32 /* Count named back references. */