-
Notifications
You must be signed in to change notification settings - Fork 50
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
windows back slash doesnt work #82
Comments
Could you provide a minimal example with your code and your .env file? |
sure, here it is PATH=some\path\to\file.txt src/main.rs use dotenvy::dotenv;
fn main() {
dotenv().unwrap();
println!("var {:?}", std::env::var("PATH"));
} the error:
|
The backslashes have to be escaped.
I hope to make this configurable in the future. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i use windows and when i use back slashes in my env the crate returns an error while trying to parse it.
dotenvy = "0.15.7"
rustc 1.70.0
error:
LineParse("\"some\\path\\to\\a\\file\"", 4)
changing it to forward slashes seems to work
The text was updated successfully, but these errors were encountered: