{"action":"closed","issue":{"url":"https://api.github.com/repos/jeresig/i18n-node-2/issues/38","labels_url":"https://api.github.com/repos/jeresig/i18n-node-2/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/jeresig/i18n-node-2/issues/38/comments","events_url":"https://api.github.com/repos/jeresig/i18n-node-2/issues/38/events","html_url":"https://github.com/jeresig/i18n-node-2/issues/38","id":40350871,"number":38,"title":"Mocha test fails because of global var match","user":{"login":"nilpath","id":879826,"avatar_url":"https://avatars.githubusercontent.com/u/879826?v=3","gravatar_id":"","url":"https://api.github.com/users/nilpath","html_url":"https://github.com/nilpath","followers_url":"https://api.github.com/users/nilpath/followers","following_url":"https://api.github.com/users/nilpath/following{/other_user}","gists_url":"https://api.github.com/users/nilpath/gists{/gist_id}","starred_url":"https://api.github.com/users/nilpath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilpath/subscriptions","organizations_url":"https://api.github.com/users/nilpath/orgs","repos_url":"https://api.github.com/users/nilpath/repos","events_url":"https://api.github.com/users/nilpath/events{/privacy}","received_events_url":"https://api.github.com/users/nilpath/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-08-15T14:12:57Z","updated_at":"2015-06-23T22:41:27Z","closed_at":"2015-06-23T22:41:27Z","body":"Hi,\r\n\r\nI noticed that our mocha tests started failing when we added this module with the following error:\r\n\r\n```Error: global leak detected: match```\r\n\r\nWe've solved it by running the mocha command with ```--globals match``` but it would be nice not to have to do this.\r\n\r\nI've looked through i18n.js and I think that this could be solved by adding a ```var match;```right before:\r\n\r\n```225: \t\twhile ((match = regExp.exec(accept))){ ```\r\n\r\nI could make a pull request for it. "}}