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 inline comment is not removed when using the SetCommentChar method #103

Closed
MrDave1999 opened this issue Jun 29, 2022 · 0 comments · Fixed by #106
Closed

The inline comment is not removed when using the SetCommentChar method #103

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

Comments

@MrDave1999
Copy link
Owner

Example code to reproduce the problem:

new EnvParser()
    .SetCommentChar(';')
    .Parse("KEY=VAL ;comment");

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

Current behavior:

KEY=VAL ;comment

Expected behavior:

KEY=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
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