{"action":"created","comment":{"url":"https://api.github.com/repos/andyjansson/postcss-functions/pulls/comments/46807976","id":46807976,"diff_hunk":"@@ -1,9 +1,41 @@\n var postcss = require('postcss'),\n-\tfunctionCall = require('reduce-function-call'),\n+\tvalueParser = require('postcss-value-parser'),\n \tassign = require('object-assign'),\n \tglob = require('glob'),\n \tpath = require('path');\n \n+function processArgs(nodes) {\n+\tif (!nodes.length) {\n+\t\treturn [];\n+\t}\n+\tvar i, max, lastIndex;\n+\tvar args = [''];\n+\n+\tfor (i = 0, max = nodes.length; i < max; i += 1) {\n+\t\tlastIndex = args.length - 1;\n+\t\tif (nodes[i].type === 'div' && nodes[i].value === ',') {\n+\t\t\targs[lastIndex] = args[lastIndex].trim();\n+\t\t\targs.push('');","path":"index.js","position":null,"original_position":19,"commit_id":"9fbfaccf17e14d3d27e3495689e4362d901ecffc","original_commit_id":"e10ac8ec313bfea3957dd1d1c6c4dd75ed58c43f","user":{"login":"TrySound","id":5635476,"avatar_url":"https://avatars.githubusercontent.com/u/5635476?v=3","gravatar_id":"","url":"https://api.github.com/users/TrySound","html_url":"https://github.com/TrySound","followers_url":"https://api.github.com/users/TrySound/followers","following_url":"https://api.github.com/users/TrySound/following{/other_user}","gists_url":"https://api.github.com/users/TrySound/gists{/gist_id}","starred_url":"https://api.github.com/users/TrySound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrySound/subscriptions","organizations_url":"https://api.github.com/users/TrySound/orgs","repos_url":"https://api.github.com/users/TrySound/repos","events_url":"https://api.github.com/users/TrySound/events{/privacy}","received_events_url":"https://api.github.com/users/TrySound/received_events","type":"User","site_admin":false},"body":"I prepend empty string to concat. It's just because arguments can contain another divs, spaces and strings.","created_at":"2015-12-07T10:54:16Z","updated_at":"2015-12-07T10:54:16Z","html_url":"https://github.com/andyjansson/postcss-functions/pull/8#discussion_r46807976","pull_request_url":"https://api.github.com/repos/andyjansson/postcss-functions/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/andyjansson/postcss-functions/pulls/comments/46807976"},"html":{"href":"https://github.com/andyjansson/postcss-functions/pull/8#discussion_r46807976"},"pull_request":{"href":"https://api.github.com/repos/andyjansson/postcss-functions/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/andyjansson/postcss-functions/pulls/8","id":52375006,"html_url":"https://github.com/andyjansson/postcss-functions/pull/8","diff_url":"https://github.com/andyjansson/postcss-functions/pull/8.diff","patch_url":"https://github.com/andyjansson/postcss-functions/pull/8.patch","issue_url":"https://api.github.com/repos/andyjansson/postcss-functions/issues/8","number":8,"state":"open","locked":false,"title":"Use postcss-value-parser","user":{"login":"TrySound","id":5635476,"avatar_url":"https://avatars.githubusercontent.com/u/5635476?v=3","gravatar_id":"","url":"https://api.github.com/users/TrySound","html_url":"https://github.com/TrySound","followers_url":"https://api.github.com/users/TrySound/followers","following_url":"https://api.github.com/users/TrySound/following{/other_user}","gists_url":"https://api.github.com/users/TrySound/gists{/gist_id}","starred_url":"https://api.github.com/users/TrySound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrySound/subscriptions","organizations_url":"https://api.github.com/users/TrySound/orgs","repos_url":"https://api.github.com/users/TrySound/repos","events_url":"https://api.github.com/users/TrySound/events{/privacy}","received_events_url":"https://api.github.com/users/TrySound/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-02T10:04:47Z","updated_at":"2015-12-07T10:54:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0a611193c08f2a0a90b9b7dcbf77e7a70eb06a75","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andyjansson/postcss-functions/pulls/8/commits","review_comments_url":"https://api.github.com/repos/andyjansson/postcss-functions/pulls/8/comments","review_comment_url":"https://api.github.com/repos/andyjansson/postcss-functions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andyjansson/postcss-functions/issues/8/comments","statuses_url":"https://api.github.com/repos/andyjansson/postcss-functions/statuses/9fbfaccf17e14d3d27e3495689e4362d901ecffc","head":{"label":"TrySound:value-parser","ref":"value-parser","sha":"9fbfaccf17e14d3d27e3495689e4362d901ecffc","user":{"login":"TrySound","id":5635476,"avatar_url":"https://avatars.githubusercontent.com/u/5635476?v=3","gravatar_id":"","url":"https://api.github.com/users/TrySound","html_url":"https://github.com/TrySound","followers_url":"https://api.github.com/users/TrySound/followers","following_url":"https://api.github.com/users/TrySound/following{/other_user}","gists_url":"https://api.github.com/users/TrySound/gists{/gist_id}","starred_url":"https://api.github.com/users/TrySound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrySound/subscriptions","organizations_url":"https://api.github.com/users/TrySound/orgs","repos_url":"https://api.github.com/users/TrySound/repos","events_url":"https://api.github.com/users/TrySound/events{/privacy}","received_events_url":"https://api.github.com/users/TrySound/received_events","type":"User","site_admin":false},"repo":{"id":47244501,"name":"postcss-functions","full_name":"TrySound/postcss-functions","owner":{"login":"TrySound","id":5635476,"avatar_url":"https://avatars.githubusercontent.com/u/5635476?v=3","gravatar_id":"","url":"https://api.github.com/users/TrySound","html_url":"https://github.com/TrySound","followers_url":"https://api.github.com/users/TrySound/followers","following_url":"https://api.github.com/users/TrySound/following{/other_user}","gists_url":"https://api.github.com/users/TrySound/gists{/gist_id}","starred_url":"https://api.github.com/users/TrySound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrySound/subscriptions","organizations_url":"https://api.github.com/users/TrySound/orgs","repos_url":"https://api.github.com/users/TrySound/repos","events_url":"https://api.github.com/users/TrySound/events{/privacy}","received_events_url":"https://api.github.com/users/TrySound/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TrySound/postcss-functions","description":"PostCSS plugin for exposing JavaScript functions","fork":true,"url":"https://api.github.com/repos/TrySound/postcss-functions","forks_url":"https://api.github.com/repos/TrySound/postcss-functions/forks","keys_url":"https://api.github.com/repos/TrySound/postcss-functions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TrySound/postcss-functions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TrySound/postcss-functions/teams","hooks_url":"https://api.github.com/repos/TrySound/postcss-functions/hooks","issue_events_url":"https://api.github.com/repos/TrySound/postcss-functions/issues/events{/number}","events_url":"https://api.github.com/repos/TrySound/postcss-functions/events","assignees_url":"https://api.github.com/repos/TrySound/postcss-functions/assignees{/user}","branches_url":"https://api.github.com/repos/TrySound/postcss-functions/branches{/branch}","tags_url":"https://api.github.com/repos/TrySound/postcss-functions/tags","blobs_url":"https://api.github.com/repos/TrySound/postcss-functions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TrySound/postcss-functions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TrySound/postcss-functions/git/refs{/sha}","trees_url":"https://api.github.com/repos/TrySound/postcss-functions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TrySound/postcss-functions/statuses/{sha}","languages_url":"https://api.github.com/repos/TrySound/postcss-functions/languages","stargazers_url":"https://api.github.com/repos/TrySound/postcss-functions/stargazers","contributors_url":"https://api.github.com/repos/TrySound/postcss-functions/contributors","subscribers_url":"https://api.github.com/repos/TrySound/postcss-functions/subscribers","subscription_url":"https://api.github.com/repos/TrySound/postcss-functions/subscription","commits_url":"https://api.github.com/repos/TrySound/postcss-functions/commits{/sha}","git_commits_url":"https://api.github.com/repos/TrySound/postcss-functions/git/commits{/sha}","comments_url":"https://api.github.com/repos/TrySound/postcss-functions/comments{/number}","issue_comment_url":"https://api.github.com/repos/TrySound/postcss-functions/issues/comments{/number}","contents_url":"https://api.github.com/repos/TrySound/postcss-functions/contents/{+path}","compare_url":"https://api.github.com/repos/TrySound/postcss-functions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TrySound/postcss-functions/merges","archive_url":"https://api.github.com/repos/TrySound/postcss-functions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TrySound/postcss-functions/downloads","issues_url":"https://api.github.com/repos/TrySound/postcss-functions/issues{/number}","pulls_url":"https://api.github.com/repos/TrySound/postcss-functions/pulls{/number}","milestones_url":"https://api.github.com/repos/TrySound/postcss-functions/milestones{/number}","notifications_url":"https://api.github.com/repos/TrySound/postcss-functions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TrySound/postcss-functions/labels{/name}","releases_url":"https://api.github.com/repos/TrySound/postcss-functions/releases{/id}","created_at":"2015-12-02T07:27:57Z","updated_at":"2015-12-02T07:27:57Z","pushed_at":"2015-12-07T10:49:58Z","git_url":"git://github.com/TrySound/postcss-functions.git","ssh_url":"git@github.com:TrySound/postcss-functions.git","clone_url":"https://github.com/TrySound/postcss-functions.git","svn_url":"https://github.com/TrySound/postcss-functions","homepage":null,"size":10,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"andyjansson:master","ref":"master","sha":"fddd81d6318b12443a7246d26e6fdcc075109a2a","user":{"login":"andyjansson","id":1737375,"avatar_url":"https://avatars.githubusercontent.com/u/1737375?v=3","gravatar_id":"","url":"https://api.github.com/users/andyjansson","html_url":"https://github.com/andyjansson","followers_url":"https://api.github.com/users/andyjansson/followers","following_url":"https://api.github.com/users/andyjansson/following{/other_user}","gists_url":"https://api.github.com/users/andyjansson/gists{/gist_id}","starred_url":"https://api.github.com/users/andyjansson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyjansson/subscriptions","organizations_url":"https://api.github.com/users/andyjansson/orgs","repos_url":"https://api.github.com/users/andyjansson/repos","events_url":"https://api.github.com/users/andyjansson/events{/privacy}","received_events_url":"https://api.github.com/users/andyjansson/received_events","type":"User","site_admin":false},"repo":{"id":40177245,"name":"postcss-functions","full_name":"andyjansson/postcss-functions","owner":{"login":"andyjansson","id":1737375,"avatar_url":"https://avatars.githubusercontent.com/u/1737375?v=3","gravatar_id":"","url":"https://api.github.com/users/andyjansson","html_url":"https://github.com/andyjansson","followers_url":"https://api.github.com/users/andyjansson/followers","following_url":"https://api.github.com/users/andyjansson/following{/other_user}","gists_url":"https://api.github.com/users/andyjansson/gists{/gist_id}","starred_url":"https://api.github.com/users/andyjansson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyjansson/subscriptions","organizations_url":"https://api.github.com/users/andyjansson/orgs","repos_url":"https://api.github.com/users/andyjansson/repos","events_url":"https://api.github.com/users/andyjansson/events{/privacy}","received_events_url":"https://api.github.com/users/andyjansson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andyjansson/postcss-functions","description":"PostCSS plugin for exposing JavaScript functions","fork":false,"url":"https://api.github.com/repos/andyjansson/postcss-functions","forks_url":"https://api.github.com/repos/andyjansson/postcss-functions/forks","keys_url":"https://api.github.com/repos/andyjansson/postcss-functions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andyjansson/postcss-functions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andyjansson/postcss-functions/teams","hooks_url":"https://api.github.com/repos/andyjansson/postcss-functions/hooks","issue_events_url":"https://api.github.com/repos/andyjansson/postcss-functions/issues/events{/number}","events_url":"https://api.github.com/repos/andyjansson/postcss-functions/events","assignees_url":"https://api.github.com/repos/andyjansson/postcss-functions/assignees{/user}","branches_url":"https://api.github.com/repos/andyjansson/postcss-functions/branches{/branch}","tags_url":"https://api.github.com/repos/andyjansson/postcss-functions/tags","blobs_url":"https://api.github.com/repos/andyjansson/postcss-functions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andyjansson/postcss-functions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andyjansson/postcss-functions/git/refs{/sha}","trees_url":"https://api.github.com/repos/andyjansson/postcss-functions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andyjansson/postcss-functions/statuses/{sha}","languages_url":"https://api.github.com/repos/andyjansson/postcss-functions/languages","stargazers_url":"https://api.github.com/repos/andyjansson/postcss-functions/stargazers","contributors_url":"https://api.github.com/repos/andyjansson/postcss-functions/contributors","subscribers_url":"https://api.github.com/repos/andyjansson/postcss-functions/subscribers","subscription_url":"https://api.github.com/repos/andyjansson/postcss-functions/subscription","commits_url":"https://api.github.com/repos/andyjansson/postcss-functions/commits{/sha}","git_commits_url":"https://api.github.com/repos/andyjansson/postcss-functions/git/commits{/sha}","comments_url":"https://api.github.com/repos/andyjansson/postcss-functions/comments{/number}","issue_comment_url":"https://api.github.com/repos/andyjansson/postcss-functions/issues/comments{/number}","contents_url":"https://api.github.com/repos/andyjansson/postcss-functions/contents/{+path}","compare_url":"https://api.github.com/repos/andyjansson/postcss-functions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andyjansson/postcss-functions/merges","archive_url":"https://api.github.com/repos/andyjansson/postcss-functions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andyjansson/postcss-functions/downloads","issues_url":"https://api.github.com/repos/andyjansson/postcss-functions/issues{/number}","pulls_url":"https://api.github.com/repos/andyjansson/postcss-functions/pulls{/number}","milestones_url":"https://api.github.com/repos/andyjansson/postcss-functions/milestones{/number}","notifications_url":"https://api.github.com/repos/andyjansson/postcss-functions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andyjansson/postcss-functions/labels{/name}","releases_url":"https://api.github.com/repos/andyjansson/postcss-functions/releases{/id}","created_at":"2015-08-04T10:03:24Z","updated_at":"2015-12-02T09:22:30Z","pushed_at":"2015-12-07T10:49:59Z","git_url":"git://github.com/andyjansson/postcss-functions.git","ssh_url":"git@github.com:andyjansson/postcss-functions.git","clone_url":"https://github.com/andyjansson/postcss-functions.git","svn_url":"https://github.com/andyjansson/postcss-functions","homepage":null,"size":7,"stargazers_count":60,"watchers_count":60,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":60,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andyjansson/postcss-functions/pulls/8"},"html":{"href":"https://github.com/andyjansson/postcss-functions/pull/8"},"issue":{"href":"https://api.github.com/repos/andyjansson/postcss-functions/issues/8"},"comments":{"href":"https://api.github.com/repos/andyjansson/postcss-functions/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/andyjansson/postcss-functions/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/andyjansson/postcss-functions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andyjansson/postcss-functions/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/andyjansson/postcss-functions/statuses/9fbfaccf17e14d3d27e3495689e4362d901ecffc"}}}}