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

fix(ascii)!: Assert, rather than stop, escape on empty normal #659

Merged
merged 2 commits into from
Jan 3, 2025

Conversation

epage
Copy link
Collaborator

@epage epage commented Jan 3, 2025

This makes the problem easier to discover than ending early and is
consistent with repeat.

A parser that wants to end on an empty match can just turn an empty
match into an error.

Fixes #569

epage added 2 commits January 3, 2025 11:53
This makes the problem easier to discover than ending early and is
consistent with `repeat`.

A parser that wants to end on an empty match can just turn an empty
match into an error.

Fixes winnow-rs#569
@coveralls
Copy link

Pull Request Test Coverage Report for Build 12601970030

Details

  • 11 of 35 (31.43%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.3%) to 41.195%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/ascii/mod.rs 11 35 31.43%
Totals Coverage Status
Change from base Build 12601617376: 0.3%
Covered Lines: 1282
Relevant Lines: 3112

💛 - Coveralls

@epage epage merged commit ebdda48 into winnow-rs:main Jan 3, 2025
15 of 16 checks passed
@epage epage deleted the escape branch January 3, 2025 18:40
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.

escaped stopping at empty string is the opposite of repeat
2 participants