{"action":"closed","issue":{"url":"https://api.github.com/repos/phetsims/chipper/issues/116","labels_url":"https://api.github.com/repos/phetsims/chipper/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/phetsims/chipper/issues/116/comments","events_url":"https://api.github.com/repos/phetsims/chipper/issues/116/events","html_url":"https://github.com/phetsims/chipper/issues/116","id":60516437,"number":116,"title":"string utilities needed","user":{"login":"pixelzoom","id":3046552,"avatar_url":"https://avatars.githubusercontent.com/u/3046552?v=3","gravatar_id":"","url":"https://api.github.com/users/pixelzoom","html_url":"https://github.com/pixelzoom","followers_url":"https://api.github.com/users/pixelzoom/followers","following_url":"https://api.github.com/users/pixelzoom/following{/other_user}","gists_url":"https://api.github.com/users/pixelzoom/gists{/gist_id}","starred_url":"https://api.github.com/users/pixelzoom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixelzoom/subscriptions","organizations_url":"https://api.github.com/users/pixelzoom/orgs","repos_url":"https://api.github.com/users/pixelzoom/repos","events_url":"https://api.github.com/users/pixelzoom/events{/privacy}","received_events_url":"https://api.github.com/users/pixelzoom/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"samreid","id":679486,"avatar_url":"https://avatars.githubusercontent.com/u/679486?v=3","gravatar_id":"","url":"https://api.github.com/users/samreid","html_url":"https://github.com/samreid","followers_url":"https://api.github.com/users/samreid/followers","following_url":"https://api.github.com/users/samreid/following{/other_user}","gists_url":"https://api.github.com/users/samreid/gists{/gist_id}","starred_url":"https://api.github.com/users/samreid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samreid/subscriptions","organizations_url":"https://api.github.com/users/samreid/orgs","repos_url":"https://api.github.com/users/samreid/repos","events_url":"https://api.github.com/users/samreid/events{/privacy}","received_events_url":"https://api.github.com/users/samreid/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2015-03-10T15:21:38Z","updated_at":"2015-08-24T17:07:20Z","closed_at":"2015-08-24T17:07:19Z","body":"There are several similar implementations of string replacement in chipper:\r\n\r\n```\r\ncreateSim.js: var replaceOneString = function( str, substring, replacement )\r\ncreateSim.js: var replaceAllString = function( str, substring, replacement )\r\ngeneralREADME: var replaceAll = function( str, find, replace )\r\nafterRequirejsBuild: var stringReplace = function( str, substring, replacement )\r\n```\r\n\r\nAnd there is also string replacement in other repos, for example:\r\n\r\n```\r\nSimIFrameAPI: var replaceAll = function( str, find, replace )\r\n```\r\n\r\nSo it seems like we need to extract out of an API for common string-replacement functions."}}