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

Improvements to strip #11

Merged
merged 2 commits into from
Jan 21, 2022
Merged

Improvements to strip #11

merged 2 commits into from
Jan 21, 2022

Conversation

sunshowers
Copy link
Contributor

Closes #9.
Closes #10.

#9 is a breaking change, but a good one I think!

Writing to a `Cursor<Vec<u8>>` can never fail.
This is a convenience method that works on UTF-8 strings, and relies on
the invariant that ANSI escape codes are always in the range 0..128.
@sunshowers
Copy link
Contributor Author

@luser were you still interested in this?

@luser luser merged commit 672ce55 into luser:master Jan 21, 2022
@luser
Copy link
Owner

luser commented Jan 21, 2022

Oops, yeah!

@sourcefrog sourcefrog mentioned this pull request Jan 22, 2023
sholderbach added a commit to sholderbach/strip-ansi-escapes that referenced this pull request Aug 8, 2023
As mentioned in luser#17, luser#11 among other things changed the public API in
a way that causes failures to build.

Thus those changes should be released under the `0.2.0` version to not
break existing or new projects that don't lock the version to `0.1.1`.

To close luser#17, and stop churn for the ecosystem `0.1.2` would need to be
yanked as well.
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.

Add a strip_str method Can the strip method return a Vec<u8>?
2 participants