Skip to content

Commit 41b399b

Browse files
authored
Fix for handling comments
1 parent 9265587 commit 41b399b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/ConfigurationReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ private static void Parse(StringReader reader, Configuration config)
5858
}
5959

6060
string lineWithoutComment = line;
61-
if (commentIndex > 0)
61+
if (!Configuration.IgnoreInlineComments && commentIndex > 0)
6262
{
6363
lineWithoutComment = line.Remove(commentIndex).Trim(); // remove inline comment
6464
}

0 commit comments

Comments
 (0)