Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 980ffee

Browse files
committed
Update StringExtensions.cs
1 parent b0eb646 commit 980ffee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceStack.Text/StringExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,7 @@ public static Dictionary<string,string> ParseKeyValueText(this string text, stri
11531153
var to = new Dictionary<string, string>();
11541154
if (text == null) return to;
11551155

1156-
foreach (var parts in text.ReadLines().Select(line => line.SplitOnFirst(delimiter)))
1156+
foreach (var parts in text.ReadLines().Select(line => line.Trim().SplitOnFirst(delimiter)))
11571157
{
11581158
var key = parts[0].Trim();
11591159
if (key.Length == 0 || key.StartsWith("#")) continue;

0 commit comments

Comments
 (0)