Merge pull request #235 from AsterNET/AddKeyValue-Duplicates-Fix

Fixed multiple entries with same key
This commit is contained in:
Deantwo 2020-07-21 18:18:51 +02:00 committed by GitHub
commit b9f3ec64d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}
}
}