Open JumpyLionnn opened 11 months ago
Could you provide a minimal example with your code and your .env file?
sure, here it is .env
PATH=some\path\to\file.txt
src/main.rs
use dotenvy::dotenv;
fn main() {
dotenv().unwrap();
println!("var {:?}", std::env::var("PATH"));
}
the error:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: LineParse("some\\path\\to\\file.txt", 5)', src\main.rs:4:14
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