Skip to content

Optionally trim whitespaces from env vars - #767

Draft
solontsev wants to merge 1 commit into
rust-cli:mainfrom
solontsev:env-trim-values
Draft

Optionally trim whitespaces from env vars#767
solontsev wants to merge 1 commit into
rust-cli:mainfrom
solontsev:env-trim-values

Conversation

@solontsev

Copy link
Copy Markdown

Adds Environment::trim_values(bool), which trims leading and trailing whitespace from environment variable values. Off by default, so existing behaviour is unchanged.

@solontsev solontsev changed the title Optionally trim whitespace from env vars Optionally trim whitespaces from env vars Aug 10, 2026
@epage

epage commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Note that our contrib guide asks for problems or requests to be discussed and acknowledged by a maintainer in an issue before posting a PR.

I'll move this to a draft until that has happened.

@epage
epage marked this pull request as draft August 10, 2026 17:44
@solontsev

Copy link
Copy Markdown
Author

Thanks @epage ! Sorry I missed the requirement to open an issue. Just added it, happy to keep working on it and fix anything you'd like changed.

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.

2 participants