Skip to content

Add support for Readable#discard_until. #7

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

Merged
merged 1 commit into from
Jun 19, 2025
Merged

Conversation

ioquatix
Copy link
Member

@ioquatix ioquatix commented Jun 19, 2025

This introduces an efficient way to discard input up until a specific pattern (String). It's similar to read_until but is only guaranteed to return at least the pattern if it matches, as it uses a sliding window to discard input during the search.

In addition, if the pattern is not found, the entire input will be discarded.

Types of Changes

  • New feature.

Contribution

@ioquatix ioquatix merged commit a9b8e2e into main Jun 19, 2025
42 of 60 checks passed
@ioquatix ioquatix deleted the readable-discard_until branch June 19, 2025 14:21
ioquatix added a commit that referenced this pull request Jun 19, 2025
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.

1 participant