Skip to content

Commit

Permalink
imp - Trim keys and values for prop arguments
Browse files Browse the repository at this point in the history
---

We've improved support for whitespaces around properties.

---

Type: imp
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Oct 9, 2024
1 parent 132c011 commit afd87bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions VisualCard/Parsers/Arguments/ArgumentInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,14 @@ internal ArgumentInfo(string kvp)
if (kvp.Contains(VcardConstants._argumentValueDelimiter))
{
string keyStr = kvp.Substring(0, kvp.IndexOf(VcardConstants._argumentValueDelimiter));
string valueStr = kvp.RemovePrefix($"{keyStr}{VcardConstants._argumentValueDelimiter}");
var info = new ArgumentInfo(keyStr, valueStr);
string valueStr = kvp.RemovePrefix($"{keyStr}{VcardConstants._argumentValueDelimiter}").Trim();
var info = new ArgumentInfo(keyStr.Trim(), valueStr);
key = info.key;
values = info.values;
}
else
{
var info = new ArgumentInfo("", kvp);
var info = new ArgumentInfo("", kvp.Trim());
key = "";
values = info.values;
}
Expand Down

0 comments on commit afd87bd

Please sign in to comment.