Skip to content

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