{"action":"opened","number":287,"pull_request":{"url":"https://api.github.com/repos/SeleniumBuilder/se-builder/pulls/287","id":51671331,"html_url":"https://github.com/SeleniumBuilder/se-builder/pull/287","diff_url":"https://github.com/SeleniumBuilder/se-builder/pull/287.diff","patch_url":"https://github.com/SeleniumBuilder/se-builder/pull/287.patch","issue_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/issues/287","number":287,"state":"open","locked":false,"title":"Simplify","user":{"login":"jefleponot","id":5547697,"avatar_url":"https://avatars.githubusercontent.com/u/5547697?v=3","gravatar_id":"","url":"https://api.github.com/users/jefleponot","html_url":"https://github.com/jefleponot","followers_url":"https://api.github.com/users/jefleponot/followers","following_url":"https://api.github.com/users/jefleponot/following{/other_user}","gists_url":"https://api.github.com/users/jefleponot/gists{/gist_id}","starred_url":"https://api.github.com/users/jefleponot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jefleponot/subscriptions","organizations_url":"https://api.github.com/users/jefleponot/orgs","repos_url":"https://api.github.com/users/jefleponot/repos","events_url":"https://api.github.com/users/jefleponot/events{/privacy}","received_events_url":"https://api.github.com/users/jefleponot/received_events","type":"User","site_admin":false},"body":"It's easiest to use a regular expression to match ${param} , isn't it :-)\r\n\r\ntext.replace(/\\${(\\w+)}/g, function(match, varName) {","created_at":"2015-11-24T15:09:59Z","updated_at":"2015-11-24T15:09:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/pulls/287/commits","review_comments_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/pulls/287/comments","review_comment_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/issues/287/comments","statuses_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/statuses/480bbc259242e95f0325a13ed89664a3383c429b","head":{"label":"jefleponot:simplify","ref":"simplify","sha":"480bbc259242e95f0325a13ed89664a3383c429b","user":{"login":"jefleponot","id":5547697,"avatar_url":"https://avatars.githubusercontent.com/u/5547697?v=3","gravatar_id":"","url":"https://api.github.com/users/jefleponot","html_url":"https://github.com/jefleponot","followers_url":"https://api.github.com/users/jefleponot/followers","following_url":"https://api.github.com/users/jefleponot/following{/other_user}","gists_url":"https://api.github.com/users/jefleponot/gists{/gist_id}","starred_url":"https://api.github.com/users/jefleponot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jefleponot/subscriptions","organizations_url":"https://api.github.com/users/jefleponot/orgs","repos_url":"https://api.github.com/users/jefleponot/repos","events_url":"https://api.github.com/users/jefleponot/events{/privacy}","received_events_url":"https://api.github.com/users/jefleponot/received_events","type":"User","site_admin":false},"repo":{"id":13116237,"name":"se-builder","full_name":"jefleponot/se-builder","owner":{"login":"jefleponot","id":5547697,"avatar_url":"https://avatars.githubusercontent.com/u/5547697?v=3","gravatar_id":"","url":"https://api.github.com/users/jefleponot","html_url":"https://github.com/jefleponot","followers_url":"https://api.github.com/users/jefleponot/followers","following_url":"https://api.github.com/users/jefleponot/following{/other_user}","gists_url":"https://api.github.com/users/jefleponot/gists{/gist_id}","starred_url":"https://api.github.com/users/jefleponot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jefleponot/subscriptions","organizations_url":"https://api.github.com/users/jefleponot/orgs","repos_url":"https://api.github.com/users/jefleponot/repos","events_url":"https://api.github.com/users/jefleponot/events{/privacy}","received_events_url":"https://api.github.com/users/jefleponot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jefleponot/se-builder","description":"Selenium Builder Project","fork":true,"url":"https://api.github.com/repos/jefleponot/se-builder","forks_url":"https://api.github.com/repos/jefleponot/se-builder/forks","keys_url":"https://api.github.com/repos/jefleponot/se-builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jefleponot/se-builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jefleponot/se-builder/teams","hooks_url":"https://api.github.com/repos/jefleponot/se-builder/hooks","issue_events_url":"https://api.github.com/repos/jefleponot/se-builder/issues/events{/number}","events_url":"https://api.github.com/repos/jefleponot/se-builder/events","assignees_url":"https://api.github.com/repos/jefleponot/se-builder/assignees{/user}","branches_url":"https://api.github.com/repos/jefleponot/se-builder/branches{/branch}","tags_url":"https://api.github.com/repos/jefleponot/se-builder/tags","blobs_url":"https://api.github.com/repos/jefleponot/se-builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jefleponot/se-builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jefleponot/se-builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/jefleponot/se-builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jefleponot/se-builder/statuses/{sha}","languages_url":"https://api.github.com/repos/jefleponot/se-builder/languages","stargazers_url":"https://api.github.com/repos/jefleponot/se-builder/stargazers","contributors_url":"https://api.github.com/repos/jefleponot/se-builder/contributors","subscribers_url":"https://api.github.com/repos/jefleponot/se-builder/subscribers","subscription_url":"https://api.github.com/repos/jefleponot/se-builder/subscription","commits_url":"https://api.github.com/repos/jefleponot/se-builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/jefleponot/se-builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/jefleponot/se-builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/jefleponot/se-builder/issues/comments{/number}","contents_url":"https://api.github.com/repos/jefleponot/se-builder/contents/{+path}","compare_url":"https://api.github.com/repos/jefleponot/se-builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jefleponot/se-builder/merges","archive_url":"https://api.github.com/repos/jefleponot/se-builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jefleponot/se-builder/downloads","issues_url":"https://api.github.com/repos/jefleponot/se-builder/issues{/number}","pulls_url":"https://api.github.com/repos/jefleponot/se-builder/pulls{/number}","milestones_url":"https://api.github.com/repos/jefleponot/se-builder/milestones{/number}","notifications_url":"https://api.github.com/repos/jefleponot/se-builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jefleponot/se-builder/labels{/name}","releases_url":"https://api.github.com/repos/jefleponot/se-builder/releases{/id}","created_at":"2013-09-26T07:56:30Z","updated_at":"2015-04-03T09:43:47Z","pushed_at":"2015-11-24T15:05:29Z","git_url":"git://github.com/jefleponot/se-builder.git","ssh_url":"git@github.com:jefleponot/se-builder.git","clone_url":"https://github.com/jefleponot/se-builder.git","svn_url":"https://github.com/jefleponot/se-builder","homepage":"","size":30747,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SeleniumBuilder:master","ref":"master","sha":"c2bd23d7dde96d7c04736e0c4ce24e198f405392","user":{"login":"SeleniumBuilder","id":1951729,"avatar_url":"https://avatars.githubusercontent.com/u/1951729?v=3","gravatar_id":"","url":"https://api.github.com/users/SeleniumBuilder","html_url":"https://github.com/SeleniumBuilder","followers_url":"https://api.github.com/users/SeleniumBuilder/followers","following_url":"https://api.github.com/users/SeleniumBuilder/following{/other_user}","gists_url":"https://api.github.com/users/SeleniumBuilder/gists{/gist_id}","starred_url":"https://api.github.com/users/SeleniumBuilder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeleniumBuilder/subscriptions","organizations_url":"https://api.github.com/users/SeleniumBuilder/orgs","repos_url":"https://api.github.com/users/SeleniumBuilder/repos","events_url":"https://api.github.com/users/SeleniumBuilder/events{/privacy}","received_events_url":"https://api.github.com/users/SeleniumBuilder/received_events","type":"Organization","site_admin":false},"repo":{"id":4978393,"name":"se-builder","full_name":"SeleniumBuilder/se-builder","owner":{"login":"SeleniumBuilder","id":1951729,"avatar_url":"https://avatars.githubusercontent.com/u/1951729?v=3","gravatar_id":"","url":"https://api.github.com/users/SeleniumBuilder","html_url":"https://github.com/SeleniumBuilder","followers_url":"https://api.github.com/users/SeleniumBuilder/followers","following_url":"https://api.github.com/users/SeleniumBuilder/following{/other_user}","gists_url":"https://api.github.com/users/SeleniumBuilder/gists{/gist_id}","starred_url":"https://api.github.com/users/SeleniumBuilder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeleniumBuilder/subscriptions","organizations_url":"https://api.github.com/users/SeleniumBuilder/orgs","repos_url":"https://api.github.com/users/SeleniumBuilder/repos","events_url":"https://api.github.com/users/SeleniumBuilder/events{/privacy}","received_events_url":"https://api.github.com/users/SeleniumBuilder/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SeleniumBuilder/se-builder","description":"Selenium Builder Project","fork":true,"url":"https://api.github.com/repos/SeleniumBuilder/se-builder","forks_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/forks","keys_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/teams","hooks_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/hooks","issue_events_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/issues/events{/number}","events_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/events","assignees_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/assignees{/user}","branches_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/branches{/branch}","tags_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/tags","blobs_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/statuses/{sha}","languages_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/languages","stargazers_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/stargazers","contributors_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/contributors","subscribers_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/subscribers","subscription_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/subscription","commits_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/issues/comments{/number}","contents_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/contents/{+path}","compare_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/merges","archive_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/downloads","issues_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/issues{/number}","pulls_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/pulls{/number}","milestones_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/milestones{/number}","notifications_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/labels{/name}","releases_url":"https://api.github.com/repos/SeleniumBuilder/se-builder/releases{/id}","created_at":"2012-07-10T18:26:36Z","updated_at":"2015-11-19T13:38:28Z","pushed_at":"2015-11-24T15:08:01Z","git_url":"git://github.com/SeleniumBuilder/se-builder.git","ssh_url":"git@github.com:SeleniumBuilder/se-builder.git","clone_url":"https://github.com/SeleniumBuilder/se-builder.git","svn_url":"https://github.com/SeleniumBuilder/se-builder","homepage":"","size":155192,"stargazers_count":196,"watchers_count":196,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":107,"mirror_url":null,"open_issues_count":68,"forks":107,"open_issues":68,"watchers":196,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SeleniumBuilder/se-builder/pulls/287"},"html":{"href":"https://github.com/SeleniumBuilder/se-builder/pull/287"},"issue":{"href":"https://api.github.com/repos/SeleniumBuilder/se-builder/issues/287"},"comments":{"href":"https://api.github.com/repos/SeleniumBuilder/se-builder/issues/287/comments"},"review_comments":{"href":"https://api.github.com/repos/SeleniumBuilder/se-builder/pulls/287/comments"},"review_comment":{"href":"https://api.github.com/repos/SeleniumBuilder/se-builder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SeleniumBuilder/se-builder/pulls/287/commits"},"statuses":{"href":"https://api.github.com/repos/SeleniumBuilder/se-builder/statuses/480bbc259242e95f0325a13ed89664a3383c429b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":24,"deletions":61,"changed_files":3}}