{"action":"created","issue":{"url":"https://api.github.com/repos/jamesramsay/hercule/issues/64","labels_url":"https://api.github.com/repos/jamesramsay/hercule/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/jamesramsay/hercule/issues/64/comments","events_url":"https://api.github.com/repos/jamesramsay/hercule/issues/64/events","html_url":"https://github.com/jamesramsay/hercule/pull/64","id":117241976,"number":64,"title":"Escape dollar signs in the output","user":{"login":"dgileadi","id":352830,"avatar_url":"https://avatars.githubusercontent.com/u/352830?v=3","gravatar_id":"","url":"https://api.github.com/users/dgileadi","html_url":"https://github.com/dgileadi","followers_url":"https://api.github.com/users/dgileadi/followers","following_url":"https://api.github.com/users/dgileadi/following{/other_user}","gists_url":"https://api.github.com/users/dgileadi/gists{/gist_id}","starred_url":"https://api.github.com/users/dgileadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgileadi/subscriptions","organizations_url":"https://api.github.com/users/dgileadi/orgs","repos_url":"https://api.github.com/users/dgileadi/repos","events_url":"https://api.github.com/users/dgileadi/events{/privacy}","received_events_url":"https://api.github.com/users/dgileadi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-16T23:17:25Z","updated_at":"2015-11-17T09:13:55Z","closed_at":"2015-11-17T09:13:55Z","pull_request":{"url":"https://api.github.com/repos/jamesramsay/hercule/pulls/64","html_url":"https://github.com/jamesramsay/hercule/pull/64","diff_url":"https://github.com/jamesramsay/hercule/pull/64.diff","patch_url":"https://github.com/jamesramsay/hercule/pull/64.patch"},"body":"The string replace function [supports patterns in the replacement string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#Specifying_a_string_as_a_parameter), triggered by a dollar sign ($). When a transcluded file includes one of these patterns (such as in a regular expression) it messes up the generated output. This pull request fixes the issue by escaping all dollar signs in the output before doing the replacement.\r\n\r\nTo see an example of the messed-up output, run the included unit test without the accompanying fix in hercule.coffee."},"comment":{"url":"https://api.github.com/repos/jamesramsay/hercule/issues/comments/157315511","html_url":"https://github.com/jamesramsay/hercule/pull/64#issuecomment-157315511","issue_url":"https://api.github.com/repos/jamesramsay/hercule/issues/64","id":157315511,"user":{"login":"jamesramsay","id":1191554,"avatar_url":"https://avatars.githubusercontent.com/u/1191554?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesramsay","html_url":"https://github.com/jamesramsay","followers_url":"https://api.github.com/users/jamesramsay/followers","following_url":"https://api.github.com/users/jamesramsay/following{/other_user}","gists_url":"https://api.github.com/users/jamesramsay/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesramsay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesramsay/subscriptions","organizations_url":"https://api.github.com/users/jamesramsay/orgs","repos_url":"https://api.github.com/users/jamesramsay/repos","events_url":"https://api.github.com/users/jamesramsay/events{/privacy}","received_events_url":"https://api.github.com/users/jamesramsay/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T09:13:55Z","updated_at":"2015-11-17T09:13:55Z","body":"Fixed in release v1.2.3"}}