{"action":"closed","issue":{"url":"https://api.github.com/repos/geezee/elmo-diff/issues/2","repository_url":"https://api.github.com/repos/geezee/elmo-diff","labels_url":"https://api.github.com/repos/geezee/elmo-diff/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/geezee/elmo-diff/issues/2/comments","events_url":"https://api.github.com/repos/geezee/elmo-diff/issues/2/events","html_url":"https://github.com/geezee/elmo-diff/issues/2","id":324088493,"node_id":"MDU6SXNzdWUzMjQwODg0OTM=","number":2,"title":"Diff application of insert rule fails if the value to insert contains new line","user":{"login":"geezee","id":1006260,"node_id":"MDQ6VXNlcjEwMDYyNjA=","avatar_url":"https://avatars0.githubusercontent.com/u/1006260?v=4","gravatar_id":"","url":"https://api.github.com/users/geezee","html_url":"https://github.com/geezee","followers_url":"https://api.github.com/users/geezee/followers","following_url":"https://api.github.com/users/geezee/following{/other_user}","gists_url":"https://api.github.com/users/geezee/gists{/gist_id}","starred_url":"https://api.github.com/users/geezee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geezee/subscriptions","organizations_url":"https://api.github.com/users/geezee/orgs","repos_url":"https://api.github.com/users/geezee/repos","events_url":"https://api.github.com/users/geezee/events{/privacy}","received_events_url":"https://api.github.com/users/geezee/received_events","type":"User","site_admin":false},"labels":[{"id":884754241,"node_id":"MDU6TGFiZWw4ODQ3NTQyNDE=","url":"https://api.github.com/repos/geezee/elmo-diff/labels/bug","name":"bug","color":"d73a4a","default":true},{"id":884754245,"node_id":"MDU6TGFiZWw4ODQ3NTQyNDU=","url":"https://api.github.com/repos/geezee/elmo-diff/labels/good%20first%20issue","name":"good first issue","color":"7057ff","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-17T16:03:47Z","updated_at":"2018-06-01T12:57:09Z","closed_at":"2018-06-01T12:57:09Z","author_association":"OWNER","body":"Applying a rule such as:\r\n```\r\n10:hello\\nworld\r\n```\r\nfails with the exception \"Operation not valid\".\r\n\r\nThe cause of the bug is in the regular expression used for matching (they are not multiline, and `.` would not match whatever's after the new line).\r\n\r\nThis patch should probably fix it\r\n```\r\n338c338\r\n<             if ((matches = /^(\\d+):(.*)$/g.exec(op)) !== null) {\r\n---\r\n>             if ((matches = /^(\\d+):([\\s\\S]*)$/gm.exec(op)) !== null) {\r\n```"}}
{"actor":{"display_login":"geezee"}}