-
Notifications
You must be signed in to change notification settings - Fork 433
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #365 - iwillspeak:capture-len-fix, r=BurntSushi
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.
- Loading branch information
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters