Skip to content

Commit e4813d3

Browse files
Merge pull request #471 from kkukshtel/#469
Allow equals sign in value for parsed KVP Pairs
2 parents fd1f906 + b1e24d0 commit e4813d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sources/ClangSharpPInvokeGenerator/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,9 +852,9 @@ private static void ParseKeyValuePairs(IEnumerable<string> keyValuePairs, List<s
852852

853853
foreach (var keyValuePair in keyValuePairs)
854854
{
855-
var parts = keyValuePair.Split('=');
855+
var parts = keyValuePair.Split('=', 2);
856856

857-
if (parts.Length != 2)
857+
if (parts.Length < 2)
858858
{
859859
errorList.Add($"Error: Invalid key/value pair argument: {keyValuePair}. Expected 'name=value'");
860860
continue;

0 commit comments

Comments
 (0)