Merge pull request #235 from AsterNET/AddKeyValue-Duplicates-Fix
Fixed multiple entries with same key
This commit is contained in:
commit
b9f3ec64d8
|
@ -647,7 +647,9 @@ namespace AsterNET
|
|||
{
|
||||
string name = line.Substring(0, delimiterIndex).ToLower(CultureInfo).Trim();
|
||||
string val = line.Substring(delimiterIndex + 1).Trim();
|
||||
if (val == "<null>")
|
||||
if (list.Contains(name))
|
||||
list[name] += Environment.NewLine + val;
|
||||
else if (val == "<null>")
|
||||
list[name] = null;
|
||||
else
|
||||
list[name] = val;
|
||||
|
@ -885,4 +887,4 @@ namespace AsterNET
|
|||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue