{"action":"opened","number":43,"pull_request":{"url":"https://api.github.com/repos/benhoyt/inih/pulls/43","id":53799443,"html_url":"https://github.com/benhoyt/inih/pull/43","diff_url":"https://github.com/benhoyt/inih/pull/43.diff","patch_url":"https://github.com/benhoyt/inih/pull/43.patch","issue_url":"https://api.github.com/repos/benhoyt/inih/issues/43","number":43,"state":"open","locked":false,"title":"Take first of either : or = as the name / value delimiter","user":{"login":"jgroffen","id":766924,"avatar_url":"https://avatars.githubusercontent.com/u/766924?v=3","gravatar_id":"","url":"https://api.github.com/users/jgroffen","html_url":"https://github.com/jgroffen","followers_url":"https://api.github.com/users/jgroffen/followers","following_url":"https://api.github.com/users/jgroffen/following{/other_user}","gists_url":"https://api.github.com/users/jgroffen/gists{/gist_id}","starred_url":"https://api.github.com/users/jgroffen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgroffen/subscriptions","organizations_url":"https://api.github.com/users/jgroffen/orgs","repos_url":"https://api.github.com/users/jgroffen/repos","events_url":"https://api.github.com/users/jgroffen/events{/privacy}","received_events_url":"https://api.github.com/users/jgroffen/received_events","type":"User","site_admin":false},"body":"I was looking for a C based ini parser to parse a file that I was already parsing with Python ConfigParser. Your library came in very handy!\r\n\r\nMy ini file uses colons for name/value delimiting, and I happen to have values that include an equal sign.\r\n\r\nI found that an = in the value would override the : as a name/value delimiter. I made a change so that if both : and = appear in the ini entry, the first to occur is treated as the name/value delimiter.\r\n\r\nExample:\r\nsomename: somevalue=morevalue\r\n\r\nBefore patch:\r\nThe name would parse as 'somename: somevalue'\r\n\r\nAfter patch:\r\nThe name would parse as 'somename' and the value would parse as 'somevalue=morevalue'\r\n\r\nI tried various combinations to check they work as expected after the patch:\r\nsomename=somevalue:morevalue\r\nsomename=somevalue=morevalue\r\nsomename:somevalue:morevalue\r\n\r\nWhen I say 'work as expected', I mean as ConfigParser (python v2.7) behaves.\r\n\r\nThanks!","created_at":"2015-12-16T04:59:12Z","updated_at":"2015-12-16T04:59:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/benhoyt/inih/pulls/43/commits","review_comments_url":"https://api.github.com/repos/benhoyt/inih/pulls/43/comments","review_comment_url":"https://api.github.com/repos/benhoyt/inih/pulls/comments{/number}","comments_url":"https://api.github.com/repos/benhoyt/inih/issues/43/comments","statuses_url":"https://api.github.com/repos/benhoyt/inih/statuses/24378ba83c8a4fe54f954be441f1e539bd7f2057","head":{"label":"jgroffen:master","ref":"master","sha":"24378ba83c8a4fe54f954be441f1e539bd7f2057","user":{"login":"jgroffen","id":766924,"avatar_url":"https://avatars.githubusercontent.com/u/766924?v=3","gravatar_id":"","url":"https://api.github.com/users/jgroffen","html_url":"https://github.com/jgroffen","followers_url":"https://api.github.com/users/jgroffen/followers","following_url":"https://api.github.com/users/jgroffen/following{/other_user}","gists_url":"https://api.github.com/users/jgroffen/gists{/gist_id}","starred_url":"https://api.github.com/users/jgroffen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgroffen/subscriptions","organizations_url":"https://api.github.com/users/jgroffen/orgs","repos_url":"https://api.github.com/users/jgroffen/repos","events_url":"https://api.github.com/users/jgroffen/events{/privacy}","received_events_url":"https://api.github.com/users/jgroffen/received_events","type":"User","site_admin":false},"repo":{"id":48087824,"name":"inih","full_name":"jgroffen/inih","owner":{"login":"jgroffen","id":766924,"avatar_url":"https://avatars.githubusercontent.com/u/766924?v=3","gravatar_id":"","url":"https://api.github.com/users/jgroffen","html_url":"https://github.com/jgroffen","followers_url":"https://api.github.com/users/jgroffen/followers","following_url":"https://api.github.com/users/jgroffen/following{/other_user}","gists_url":"https://api.github.com/users/jgroffen/gists{/gist_id}","starred_url":"https://api.github.com/users/jgroffen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgroffen/subscriptions","organizations_url":"https://api.github.com/users/jgroffen/orgs","repos_url":"https://api.github.com/users/jgroffen/repos","events_url":"https://api.github.com/users/jgroffen/events{/privacy}","received_events_url":"https://api.github.com/users/jgroffen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jgroffen/inih","description":"Simple .INI file parser in C, good for embedded systems","fork":true,"url":"https://api.github.com/repos/jgroffen/inih","forks_url":"https://api.github.com/repos/jgroffen/inih/forks","keys_url":"https://api.github.com/repos/jgroffen/inih/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jgroffen/inih/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jgroffen/inih/teams","hooks_url":"https://api.github.com/repos/jgroffen/inih/hooks","issue_events_url":"https://api.github.com/repos/jgroffen/inih/issues/events{/number}","events_url":"https://api.github.com/repos/jgroffen/inih/events","assignees_url":"https://api.github.com/repos/jgroffen/inih/assignees{/user}","branches_url":"https://api.github.com/repos/jgroffen/inih/branches{/branch}","tags_url":"https://api.github.com/repos/jgroffen/inih/tags","blobs_url":"https://api.github.com/repos/jgroffen/inih/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jgroffen/inih/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jgroffen/inih/git/refs{/sha}","trees_url":"https://api.github.com/repos/jgroffen/inih/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jgroffen/inih/statuses/{sha}","languages_url":"https://api.github.com/repos/jgroffen/inih/languages","stargazers_url":"https://api.github.com/repos/jgroffen/inih/stargazers","contributors_url":"https://api.github.com/repos/jgroffen/inih/contributors","subscribers_url":"https://api.github.com/repos/jgroffen/inih/subscribers","subscription_url":"https://api.github.com/repos/jgroffen/inih/subscription","commits_url":"https://api.github.com/repos/jgroffen/inih/commits{/sha}","git_commits_url":"https://api.github.com/repos/jgroffen/inih/git/commits{/sha}","comments_url":"https://api.github.com/repos/jgroffen/inih/comments{/number}","issue_comment_url":"https://api.github.com/repos/jgroffen/inih/issues/comments{/number}","contents_url":"https://api.github.com/repos/jgroffen/inih/contents/{+path}","compare_url":"https://api.github.com/repos/jgroffen/inih/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jgroffen/inih/merges","archive_url":"https://api.github.com/repos/jgroffen/inih/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jgroffen/inih/downloads","issues_url":"https://api.github.com/repos/jgroffen/inih/issues{/number}","pulls_url":"https://api.github.com/repos/jgroffen/inih/pulls{/number}","milestones_url":"https://api.github.com/repos/jgroffen/inih/milestones{/number}","notifications_url":"https://api.github.com/repos/jgroffen/inih/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jgroffen/inih/labels{/name}","releases_url":"https://api.github.com/repos/jgroffen/inih/releases{/id}","created_at":"2015-12-16T04:42:37Z","updated_at":"2015-12-16T04:42:38Z","pushed_at":"2015-12-16T04:48:31Z","git_url":"git://github.com/jgroffen/inih.git","ssh_url":"git@github.com:jgroffen/inih.git","clone_url":"https://github.com/jgroffen/inih.git","svn_url":"https://github.com/jgroffen/inih","homepage":"","size":38,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"benhoyt:master","ref":"master","sha":"e470b45d87fd18c639212c513663a0c40cc9109d","user":{"login":"benhoyt","id":999033,"avatar_url":"https://avatars.githubusercontent.com/u/999033?v=3","gravatar_id":"","url":"https://api.github.com/users/benhoyt","html_url":"https://github.com/benhoyt","followers_url":"https://api.github.com/users/benhoyt/followers","following_url":"https://api.github.com/users/benhoyt/following{/other_user}","gists_url":"https://api.github.com/users/benhoyt/gists{/gist_id}","starred_url":"https://api.github.com/users/benhoyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benhoyt/subscriptions","organizations_url":"https://api.github.com/users/benhoyt/orgs","repos_url":"https://api.github.com/users/benhoyt/repos","events_url":"https://api.github.com/users/benhoyt/events{/privacy}","received_events_url":"https://api.github.com/users/benhoyt/received_events","type":"User","site_admin":false},"repo":{"id":32095406,"name":"inih","full_name":"benhoyt/inih","owner":{"login":"benhoyt","id":999033,"avatar_url":"https://avatars.githubusercontent.com/u/999033?v=3","gravatar_id":"","url":"https://api.github.com/users/benhoyt","html_url":"https://github.com/benhoyt","followers_url":"https://api.github.com/users/benhoyt/followers","following_url":"https://api.github.com/users/benhoyt/following{/other_user}","gists_url":"https://api.github.com/users/benhoyt/gists{/gist_id}","starred_url":"https://api.github.com/users/benhoyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benhoyt/subscriptions","organizations_url":"https://api.github.com/users/benhoyt/orgs","repos_url":"https://api.github.com/users/benhoyt/repos","events_url":"https://api.github.com/users/benhoyt/events{/privacy}","received_events_url":"https://api.github.com/users/benhoyt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benhoyt/inih","description":"Simple .INI file parser in C, good for embedded systems","fork":false,"url":"https://api.github.com/repos/benhoyt/inih","forks_url":"https://api.github.com/repos/benhoyt/inih/forks","keys_url":"https://api.github.com/repos/benhoyt/inih/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benhoyt/inih/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benhoyt/inih/teams","hooks_url":"https://api.github.com/repos/benhoyt/inih/hooks","issue_events_url":"https://api.github.com/repos/benhoyt/inih/issues/events{/number}","events_url":"https://api.github.com/repos/benhoyt/inih/events","assignees_url":"https://api.github.com/repos/benhoyt/inih/assignees{/user}","branches_url":"https://api.github.com/repos/benhoyt/inih/branches{/branch}","tags_url":"https://api.github.com/repos/benhoyt/inih/tags","blobs_url":"https://api.github.com/repos/benhoyt/inih/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benhoyt/inih/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benhoyt/inih/git/refs{/sha}","trees_url":"https://api.github.com/repos/benhoyt/inih/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benhoyt/inih/statuses/{sha}","languages_url":"https://api.github.com/repos/benhoyt/inih/languages","stargazers_url":"https://api.github.com/repos/benhoyt/inih/stargazers","contributors_url":"https://api.github.com/repos/benhoyt/inih/contributors","subscribers_url":"https://api.github.com/repos/benhoyt/inih/subscribers","subscription_url":"https://api.github.com/repos/benhoyt/inih/subscription","commits_url":"https://api.github.com/repos/benhoyt/inih/commits{/sha}","git_commits_url":"https://api.github.com/repos/benhoyt/inih/git/commits{/sha}","comments_url":"https://api.github.com/repos/benhoyt/inih/comments{/number}","issue_comment_url":"https://api.github.com/repos/benhoyt/inih/issues/comments{/number}","contents_url":"https://api.github.com/repos/benhoyt/inih/contents/{+path}","compare_url":"https://api.github.com/repos/benhoyt/inih/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benhoyt/inih/merges","archive_url":"https://api.github.com/repos/benhoyt/inih/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benhoyt/inih/downloads","issues_url":"https://api.github.com/repos/benhoyt/inih/issues{/number}","pulls_url":"https://api.github.com/repos/benhoyt/inih/pulls{/number}","milestones_url":"https://api.github.com/repos/benhoyt/inih/milestones{/number}","notifications_url":"https://api.github.com/repos/benhoyt/inih/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benhoyt/inih/labels{/name}","releases_url":"https://api.github.com/repos/benhoyt/inih/releases{/id}","created_at":"2015-03-12T18:47:11Z","updated_at":"2015-12-13T00:14:36Z","pushed_at":"2015-12-14T15:07:22Z","git_url":"git://github.com/benhoyt/inih.git","ssh_url":"git@github.com:benhoyt/inih.git","clone_url":"https://github.com/benhoyt/inih.git","svn_url":"https://github.com/benhoyt/inih","homepage":"","size":62,"stargazers_count":107,"watchers_count":107,"language":"C","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":3,"forks":29,"open_issues":3,"watchers":107,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/benhoyt/inih/pulls/43"},"html":{"href":"https://github.com/benhoyt/inih/pull/43"},"issue":{"href":"https://api.github.com/repos/benhoyt/inih/issues/43"},"comments":{"href":"https://api.github.com/repos/benhoyt/inih/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/benhoyt/inih/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/benhoyt/inih/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/benhoyt/inih/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/benhoyt/inih/statuses/24378ba83c8a4fe54f954be441f1e539bd7f2057"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":6,"deletions":0,"changed_files":1}}