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

New trim function #208

Closed
sagiegurari opened this issue Mar 19, 2019 · 3 comments
Closed

New trim function #208

sagiegurari opened this issue Mar 19, 2019 · 3 comments
Assignees
Milestone

Comments

@sagiegurari
Copy link
Owner

No description provided.

@ssokolow
Copy link

I can guess at what the trim function does, but how is it used?

@sagiegurari
Copy link
Owner Author

i have an example in the docs already:
https://github.com/sagiegurari/cargo-make/tree/0.17.0#usage-functions-trim

@ssokolow
Copy link

This is very awkwardly written:

And returns either an empty array in case the environment variable is not defined or after it is trimmed, it is empty or it returns the actual environment variable value.

I'd suggest this instead:

And returns either the contents of the variable with leading and trailing whitespace removed, or an empty array if the variable is not defined or contains only whitespace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants