-
Notifications
You must be signed in to change notification settings - Fork 444
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
Fix Bug in rure_captures_len
#365
Conversation
How embarrassing! Thank you for the fox and the test. I'm on mobile so it's hard to tell, but it looks like the C code is formatted differently from other C code in the same file. Could you make the formatting consistent? (And please also squash. :-)) Thanks! |
Tabs vs spaces I guess. Will fix up.
…On Sun, 14 May 2017 at 12:57, Andrew Gallant ***@***.***> wrote:
How embarrassing! Thank you for the fox and the test.
I'm on mobile so it's hard to tell, but it looks like the C code is
formatted differently from other C code in the same file. Could you make
the formatting consistent? (And please also squash. :-)) Thanks!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#365 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA9TcR_Lzyu805iTAZcAKrk2uUDGHldRks5r5uwbgaJpZM4NaWUR>
.
|
It looks like at some point in the past the captures were refactored from being a vector of start and end positions into a list of location structures. The C API still had a conversion of the length which corrected for the captures being twice the length of the number of captures. This updates the length calculation in `rure.rs` to return the correct length, and adds an assertion to the test case.
Awesome, thank you! @bors r+ |
📌 Commit 4ed2fed has been approved by |
Fix Bug in `rure_captures_len` It looks like at some point in the past the captures were refactored from being a vector of start and end positions into a list of location structures. The C API still had a conversion of the lenght which corrected for the captures being twice the length of the number of captures. This updates the length calculation in `rure.rs` to return the correct length, and adds an assertion to the test case.
☀️ Test successful - status-appveyor, status-travis |
\o/ |
Gets the lastst versions of the native packages. These builds include the fix for rust-lang/regex#365.
It looks like at some point in the past the captures were refactored
from being a vector of start and end positions into a list of location
structures. The C API still had a conversion of the lenght which
corrected for the captures being twice the length of the number of
captures.
This updates the length calculation in
rure.rs
to return thecorrect length, and adds an assertion to the test case.