{"action":"created","issue":{"url":"https://api.github.com/repos/prettydiff/prettydiff/issues/332","repository_url":"https://api.github.com/repos/prettydiff/prettydiff","labels_url":"https://api.github.com/repos/prettydiff/prettydiff/issues/332/labels{/name}","comments_url":"https://api.github.com/repos/prettydiff/prettydiff/issues/332/comments","events_url":"https://api.github.com/repos/prettydiff/prettydiff/issues/332/events","html_url":"https://github.com/prettydiff/prettydiff/issues/332","id":168619312,"number":332,"title":"diffspaceignore:true errors","user":{"login":"cazgp","id":658873,"avatar_url":"https://avatars.githubusercontent.com/u/658873?v=3","gravatar_id":"","url":"https://api.github.com/users/cazgp","html_url":"https://github.com/cazgp","followers_url":"https://api.github.com/users/cazgp/followers","following_url":"https://api.github.com/users/cazgp/following{/other_user}","gists_url":"https://api.github.com/users/cazgp/gists{/gist_id}","starred_url":"https://api.github.com/users/cazgp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cazgp/subscriptions","organizations_url":"https://api.github.com/users/cazgp/orgs","repos_url":"https://api.github.com/users/cazgp/repos","events_url":"https://api.github.com/users/cazgp/events{/privacy}","received_events_url":"https://api.github.com/users/cazgp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/prettydiff/prettydiff/labels/Defect","name":"Defect","color":"e11d21"},{"url":"https://api.github.com/repos/prettydiff/prettydiff/labels/Diff","name":"Diff","color":"bfdadc"},{"url":"https://api.github.com/repos/prettydiff/prettydiff/labels/Underway","name":"Underway","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/prettydiff/prettydiff/milestones/49","html_url":"https://github.com/prettydiff/prettydiff/milestones/v2.1.1","labels_url":"https://api.github.com/repos/prettydiff/prettydiff/milestones/49/labels","id":1911534,"number":49,"title":"v2.1.1","description":"","creator":{"login":"prettydiff","id":524902,"avatar_url":"https://avatars.githubusercontent.com/u/524902?v=3","gravatar_id":"","url":"https://api.github.com/users/prettydiff","html_url":"https://github.com/prettydiff","followers_url":"https://api.github.com/users/prettydiff/followers","following_url":"https://api.github.com/users/prettydiff/following{/other_user}","gists_url":"https://api.github.com/users/prettydiff/gists{/gist_id}","starred_url":"https://api.github.com/users/prettydiff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prettydiff/subscriptions","organizations_url":"https://api.github.com/users/prettydiff/orgs","repos_url":"https://api.github.com/users/prettydiff/repos","events_url":"https://api.github.com/users/prettydiff/events{/privacy}","received_events_url":"https://api.github.com/users/prettydiff/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":0,"state":"open","created_at":"2016-07-29T12:08:10Z","updated_at":"2016-08-01T12:21:15Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-08-01T10:53:31Z","updated_at":"2016-08-01T12:24:37Z","closed_at":null,"body":"prettydiff Version: 2.1.0 Dated: 10 July 2016 ; Ubuntu 15.04.\r\n\r\n```\r\n$ prettydiff source:source.xml diff:diff.xml diffcli:true content:true diffspaceignore:true > output.html\r\n/usr/lib/node_modules/prettydiff/lib/diffview.js:933\r\n                    if (options.diffspaceignore === true && change === \"replace\" && baseTextArray[baseStart].replace(/\\s+/g, \"\") === newTextArray[newStart].replace(/\\s+/g, \"\")) {\r\n                                                                                                                                                           ^\r\n\r\nTypeError: Cannot read property 'replace' of undefined\r\n    at diffview__report (/usr/lib/node_modules/prettydiff/lib/diffview.js:933:156)\r\n    at diffview_ (/usr/lib/node_modules/prettydiff/lib/diffview.js:1302:6)\r\n    at commonjs (/usr/lib/node_modules/prettydiff/lib/diffview.js:1308:16)\r\n    at core__diff (/usr/lib/node_modules/prettydiff/prettydiff.js:890:46)\r\n    at core_ (/usr/lib/node_modules/prettydiff/prettydiff.js:910:18)\r\n    at prettydiff_ (/usr/lib/node_modules/prettydiff/prettydiff.js:943:12)\r\n    at Object.commonjs [as api] (/usr/lib/node_modules/prettydiff/prettydiff.js:979:16)\r\n    at pdNodeLocal__prettydiff (/usr/lib/node_modules/prettydiff/api/node-local.js:161:36)\r\n    at pdNodeLocal__cliFile (/usr/lib/node_modules/prettydiff/api/node-local.js:975:22)\r\n    at pdNodeLocal__fileComplete (/usr/lib/node_modules/prettydiff/api/node-local.js:1018:25)\r\n```\r\n\r\nI cannot provide the files used, but the bug does not occur on simpler files. Any thoughts on why / how this may be happening?"},"comment":{"url":"https://api.github.com/repos/prettydiff/prettydiff/issues/comments/236566380","html_url":"https://github.com/prettydiff/prettydiff/issues/332#issuecomment-236566380","issue_url":"https://api.github.com/repos/prettydiff/prettydiff/issues/332","id":236566380,"user":{"login":"prettydiff","id":524902,"avatar_url":"https://avatars.githubusercontent.com/u/524902?v=3","gravatar_id":"","url":"https://api.github.com/users/prettydiff","html_url":"https://github.com/prettydiff","followers_url":"https://api.github.com/users/prettydiff/followers","following_url":"https://api.github.com/users/prettydiff/following{/other_user}","gists_url":"https://api.github.com/users/prettydiff/gists{/gist_id}","starred_url":"https://api.github.com/users/prettydiff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prettydiff/subscriptions","organizations_url":"https://api.github.com/users/prettydiff/orgs","repos_url":"https://api.github.com/users/prettydiff/repos","events_url":"https://api.github.com/users/prettydiff/events{/privacy}","received_events_url":"https://api.github.com/users/prettydiff/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T12:24:37Z","updated_at":"2016-08-01T12:24:37Z","body":"I am changing that line to this:\r\n\r\n    if (options.diffspaceignore === true && change === \"replace\" && baseTextArray[baseStart] !== undefined && newTextArray[newStart] !== undefined && baseTextArray[baseStart].replace(/\\s+/g, \"\") === newTextArray[newStart].replace(/\\s+/g, \"\")) {\r\n\r\nIt will suppress those errors."}}
{"actor":{"display_login":"prettydiff"}}