Skip to content

Commit

Permalink
Merge pull request #471 from kkukshtel/#469
Browse files Browse the repository at this point in the history
Allow equals sign in value for parsed KVP Pairs
  • Loading branch information
tannergooding authored Sep 19, 2023
2 parents fd1f906 + b1e24d0 commit e4813d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/ClangSharpPInvokeGenerator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -852,9 +852,9 @@ private static void ParseKeyValuePairs(IEnumerable<string> keyValuePairs, List<s

foreach (var keyValuePair in keyValuePairs)
{
var parts = keyValuePair.Split('=');
var parts = keyValuePair.Split('=', 2);

if (parts.Length != 2)
if (parts.Length < 2)
{
errorList.Add($"Error: Invalid key/value pair argument: {keyValuePair}. Expected 'name=value'");
continue;
Expand Down

0 comments on commit e4813d3

Please sign in to comment.