{"action":"opened","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/2746","labels_url":"https://api.github.com/repos/eslint/eslint/issues/2746/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/2746/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/2746/events","html_url":"https://github.com/eslint/eslint/issues/2746","id":87140310,"number":2746,"title":"context.report() does not handle 'my message {{0}}'","user":{"login":"Skalman","id":138395,"avatar_url":"https://avatars.githubusercontent.com/u/138395?v=3","gravatar_id":"","url":"https://api.github.com/users/Skalman","html_url":"https://github.com/Skalman","followers_url":"https://api.github.com/users/Skalman/followers","following_url":"https://api.github.com/users/Skalman/following{/other_user}","gists_url":"https://api.github.com/users/Skalman/gists{/gist_id}","starred_url":"https://api.github.com/users/Skalman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skalman/subscriptions","organizations_url":"https://api.github.com/users/Skalman/orgs","repos_url":"https://api.github.com/users/Skalman/repos","events_url":"https://api.github.com/users/Skalman/events{/privacy}","received_events_url":"https://api.github.com/users/Skalman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-10T23:17:06Z","updated_at":"2015-06-10T23:17:06Z","closed_at":null,"body":"I'd like the following to work, when writing a custom rule:\r\n```js\r\ncontext.report(node, 'my message {{0}}', ['testing'])\r\n// should result in \"my message testing\"\r\n```\r\n\r\nThe reason is this line:\r\nhttps://github.com/eslint/eslint/blob/7a3c545272821a2aa47bfd87b0c01ba48812616f/lib/eslint.js#L779\r\n```js\r\nvar rx = new RegExp(\"{{\" + escapeRegExp(key) + \"}}\", \"g\");\r\n\r\n// should be replaced by\r\nvar rx = new RegExp(escapeRegExp(\"{{\" + key + \"}}\"), \"g\");\r\n```\r\n\r\n\r\n"}}