{"action":"created","issue":{"url":"https://api.github.com/repos/wp-shortcake/shortcake/issues/560","labels_url":"https://api.github.com/repos/wp-shortcake/shortcake/issues/560/labels{/name}","comments_url":"https://api.github.com/repos/wp-shortcake/shortcake/issues/560/comments","events_url":"https://api.github.com/repos/wp-shortcake/shortcake/issues/560/events","html_url":"https://github.com/wp-shortcake/shortcake/pull/560","id":120050034,"number":560,"title":"Reset the shortcode regexp's index between each match","user":{"login":"goldenapples","id":665992,"avatar_url":"https://avatars.githubusercontent.com/u/665992?v=3","gravatar_id":"","url":"https://api.github.com/users/goldenapples","html_url":"https://github.com/goldenapples","followers_url":"https://api.github.com/users/goldenapples/followers","following_url":"https://api.github.com/users/goldenapples/following{/other_user}","gists_url":"https://api.github.com/users/goldenapples/gists{/gist_id}","starred_url":"https://api.github.com/users/goldenapples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goldenapples/subscriptions","organizations_url":"https://api.github.com/users/goldenapples/orgs","repos_url":"https://api.github.com/users/goldenapples/repos","events_url":"https://api.github.com/users/goldenapples/events{/privacy}","received_events_url":"https://api.github.com/users/goldenapples/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"goldenapples","id":665992,"avatar_url":"https://avatars.githubusercontent.com/u/665992?v=3","gravatar_id":"","url":"https://api.github.com/users/goldenapples","html_url":"https://github.com/goldenapples","followers_url":"https://api.github.com/users/goldenapples/followers","following_url":"https://api.github.com/users/goldenapples/following{/other_user}","gists_url":"https://api.github.com/users/goldenapples/gists{/gist_id}","starred_url":"https://api.github.com/users/goldenapples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goldenapples/subscriptions","organizations_url":"https://api.github.com/users/goldenapples/orgs","repos_url":"https://api.github.com/users/goldenapples/repos","events_url":"https://api.github.com/users/goldenapples/events{/privacy}","received_events_url":"https://api.github.com/users/goldenapples/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-12-02T22:26:45Z","updated_at":"2015-12-02T22:32:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wp-shortcake/shortcake/pulls/560","html_url":"https://github.com/wp-shortcake/shortcake/pull/560","diff_url":"https://github.com/wp-shortcake/shortcake/pull/560.diff","patch_url":"https://github.com/wp-shortcake/shortcake/pull/560.patch"},"body":"Because the shortcode Regexp defined by `wp.shortcode.rexexp` is a\r\nglobal matcher, each time it is `exec()`'d, it preserves the last index\r\nsearched up to, and begins searching from that index of the target\r\nstring the next time it is run over that target string.\r\n\r\nThis fixes that problem by resetting the lastIndex counter to 0 before\r\nexecuting the regex.\r\n\r\nSee #559"},"comment":{"url":"https://api.github.com/repos/wp-shortcake/shortcake/issues/comments/161455096","html_url":"https://github.com/wp-shortcake/shortcake/pull/560#issuecomment-161455096","issue_url":"https://api.github.com/repos/wp-shortcake/shortcake/issues/560","id":161455096,"user":{"login":"goldenapples","id":665992,"avatar_url":"https://avatars.githubusercontent.com/u/665992?v=3","gravatar_id":"","url":"https://api.github.com/users/goldenapples","html_url":"https://github.com/goldenapples","followers_url":"https://api.github.com/users/goldenapples/followers","following_url":"https://api.github.com/users/goldenapples/following{/other_user}","gists_url":"https://api.github.com/users/goldenapples/gists{/gist_id}","starred_url":"https://api.github.com/users/goldenapples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goldenapples/subscriptions","organizations_url":"https://api.github.com/users/goldenapples/orgs","repos_url":"https://api.github.com/users/goldenapples/repos","events_url":"https://api.github.com/users/goldenapples/events{/privacy}","received_events_url":"https://api.github.com/users/goldenapples/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T22:32:52Z","updated_at":"2015-12-02T22:32:52Z","body":"The build failure is unrelated, stemming from new expectations in WPCS PHP code sniffs."}}