-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test regexp_matched_num PR #257
Conversation
Okay, so that ...Can we skip neko part for |
The code changed slightly when porting to pcre2. I can try to fix it because it wasn't too long ago when I ported it. |
libs/regexp/regexp.c
Outdated
@@ -311,7 +311,7 @@ static value regexp_matched_num( value o ) { | |||
d = PCRE(o); | |||
if( val_is_null(d->str) ) | |||
return alloc_int(-1); | |||
return alloc_int(d->nmatches); | |||
return alloc_int(d->nmatchs); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I renamed this field to n_groups
while porting because I found it confusing (and because of the typo). Changing this from nmatchs
to n_groups
should be the fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm probably not the correct person to review this (and I don't have the permissions to merge it either), but in terms of pcre2 changes this looks good. 👍🏼
@Simn can this be merged? |
Want to see green #223
Closes #223