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

Quote Character #603

Open
SSomov opened this issue Oct 23, 2022 · 1 comment
Open

Quote Character #603

SSomov opened this issue Oct 23, 2022 · 1 comment

Comments

@SSomov
Copy link

SSomov commented Oct 23, 2022

config pre-commit:

- repo: https://github.com/wemake-services/dotenv-linter rev: 0.4.0 # Use the ref you want to point at hooks: - id: dotenv-linter

variable in env file:

DEFAULT_FROM_EMAIL='name [email protected]'

linter failed:

.env:3 301 Found quoted value

https://dotenv-linter.github.io/#/checks/quote_character

What's the right way?

@m-roberts
Copy link

Instead of wrapping in quotes:

DEFAULT_FROM_EMAIL='name [email protected]'

You need to use \ as an escape character for each character that would stop the shell from evaluating the line as a single string:

DEFAULT_FROM_EMAIL=name\ [email protected]

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