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

Strip starting and trailing whitespace from environment values #528

Open
vandorjw opened this issue Jul 8, 2024 · 0 comments
Open

Strip starting and trailing whitespace from environment values #528

vandorjw opened this issue Jul 8, 2024 · 0 comments

Comments

@vandorjw
Copy link

vandorjw commented Jul 8, 2024

Can a flag be added to remove/ignore whitespace from environment values?

In the example below, I denoted spaces with and a new line with :

  • env‧value1‧ -> env‧value1
  • ‧env‧value2 -> env‧value2
  • env‧val¶ -> env‧val

On a few different projects I've hit a bug where everything looks correct but the difficult to spot whitespace is causes a problem.

I think by default, we would want such a flag to be off, as some uses might legitimately have a trailing space, tab, or line-break in their values.

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

1 participant