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

Request: Change squish() to allow a trim character #696

Open
Hope-Shangrila opened this issue Aug 18, 2022 · 1 comment
Open

Request: Change squish() to allow a trim character #696

Hope-Shangrila opened this issue Aug 18, 2022 · 1 comment

Comments

@Hope-Shangrila
Copy link

trim() allows special combinations like %r to be specified as the trim character. It would be useful for squish() to allow the same. Right now it accepts a character, but can it be changed to accept %r and other special combinations.

@brazilofmux
Copy link
Owner

The upper-level function already does the right thing. However, mux_string::compress(UTF8 *ch) would need to support multiple characters. FYI. %r is really CRLF, which is two characters.

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

No branches or pull requests

2 participants