{"action":"opened","issue":{"url":"https://api.github.com/repos/jhnns/rewire/issues/54","labels_url":"https://api.github.com/repos/jhnns/rewire/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/jhnns/rewire/issues/54/comments","events_url":"https://api.github.com/repos/jhnns/rewire/issues/54/events","html_url":"https://github.com/jhnns/rewire/issues/54","id":68771000,"number":54,"title":"strict mode not detected if under a comment","user":{"login":"johnsonw","id":1100657,"avatar_url":"https://avatars.githubusercontent.com/u/1100657?v=3","gravatar_id":"","url":"https://api.github.com/users/johnsonw","html_url":"https://github.com/johnsonw","followers_url":"https://api.github.com/users/johnsonw/followers","following_url":"https://api.github.com/users/johnsonw/following{/other_user}","gists_url":"https://api.github.com/users/johnsonw/gists{/gist_id}","starred_url":"https://api.github.com/users/johnsonw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnsonw/subscriptions","organizations_url":"https://api.github.com/users/johnsonw/orgs","repos_url":"https://api.github.com/users/johnsonw/repos","events_url":"https://api.github.com/users/johnsonw/events{/privacy}","received_events_url":"https://api.github.com/users/johnsonw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-15T19:42:49Z","updated_at":"2015-04-15T19:42:49Z","closed_at":null,"body":"Strict mode is successfully detected when it is at the very top of the file but if you have a comment before it strict mode will not be detected.\r\nWorks:\r\n    'use strict';\r\n    // This program ...\r\n\r\nDoes not work:\r\n    // This program ...\r\n    'use strict';\r\n\r\nThis can be remedied by adding an 'm' modifier to the end of the regular expression in detectStrictMode.js:\r\n    /^\\s*(?:\"use strict\"|'use strict')[ \\t]*(?:[\\r\\n]|;)/gm"}}