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

The double or single-quoted in the values are not removed when the DisableTrimValues method is invoked #104

Closed
MrDave1999 opened this issue Jun 29, 2022 · 0 comments · Fixed by #107
Labels
bug Something isn't working
Milestone

Comments

@MrDave1999
Copy link
Owner

Example code to reproduce the problem:

new EnvParser()
    .DisableTrimValues()
    .Parse("KEY=  ' VAL'  \nVAR=  \" VAL\"  ");

Console.WriteLine("KEY=" + Environment.GetEnvironmentVariable("KEY"));
Console.WriteLine("VAR=" + Environment.GetEnvironmentVariable("VAR"));

Current behavior:

KEY=  ' VAL'  
VAR=  " VAL"  

Expected behavior:

KEY= VAL
VAR= VAL
@MrDave1999 MrDave1999 added the bug Something isn't working label Jun 29, 2022
@MrDave1999 MrDave1999 added this to the 2.2.0 milestone Jun 29, 2022
@MrDave1999 MrDave1999 added this to To Do in DotEnv v2.2.0 via automation Jun 29, 2022
DotEnv v2.2.0 automation moved this from To Do to Done Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
1 participant