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
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
None yet
1 participant