Skip to content
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

Clamp the Excerpt end index to the end of the file #571

Merged
merged 3 commits into from
Jan 4, 2024
Merged

Conversation

gfs
Copy link
Contributor

@gfs gfs commented Jan 2, 2024

The desired context excerpt could, in cases where the match is close to the end of the file, result in an index out of range error. Change to clamp the index to be inside the file. Adds tests for clamping behavior on the ExtractExcerpt method. Updates dependencies.

@gfs
Copy link
Contributor Author

gfs commented Jan 3, 2024

/azp run

1 similar comment
@gfs
Copy link
Contributor Author

gfs commented Jan 3, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@gfs gfs merged commit 3a5c3f9 into main Jan 4, 2024
11 checks passed
@gfs gfs deleted the gfs/FixSampleEndIndex branch January 4, 2024 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants